css-validator
css-validator copied to clipboard
W3C CSS Validation Service
Especially when the output is not the default one. It must use the same template as normal for those cases.
Some messages that get reported have a `skippedString` appended that isn’t useful; for example: > Value Error : background top is not a color value ) The `)` at the...
`` should just be `` and the message should be adapted `(close the img tag with > instead of /> if using HTML
Currently it clutters up the root directly something fierce.
This can be done via https://github.com/w3c/css-validator/releases You can+should also include a JAR for the release via the indicated field of GitHub release UI:
It looks like the validator does not recognize custom property values with the "background-color" and "fill" properties. Consider the following example: CSS: `:root { --primary-color: light-dark(#000,#fff); } ... body {...
``` main, aside { container: my-layout / inline-size; } ``` from https://www.w3.org/TR/css-contain-3/#container-queries is not recognized as valid. Returns `Property container doesn't exist. The closest matching property name is contain :...
``` @container my-layout (inline-size > 45em) { .media-object { grid-template: 'img content' auto / auto 1fr; } } ``` from https://www.w3.org/TR/css-contain-3/#container-queries is not recognized as valid
It looks like the validator does not recognize shorthand hexadecimal colors (e.g., #000) in the CSS validator when inside a custom variable. Consider the following example: CSS: `:root { --primary-color:...