w3c / css-validator

W3C CSS Validation Service
https://jigsaw.w3.org/css-validator/
Other
204 stars 105 forks source link

Validator doesn't support space as value for custom property #405

Closed 7h3Rabbit closed 4 months ago

7h3Rabbit commented 12 months ago

Writing an empty value into a custom property, like --foo: ;, should be viewed as a valid (empty) value.

Reference: https://lea.verou.me/blog/2020/10/the-var-space-hack-to-toggle-multiple-values-with-one-custom-property/ https://www.w3.org/TR/css-variables-1/#guaranteed-invalid

Example: https://moddasormland.se/_next/static/css/c0aa550e003a6df9.css

ylafon commented 4 months ago

Closed as duplicate of #368 Also the example is giving a 404