Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
7h3Rabbit opened this issue Sep 13, 2023 · 1 comment
Closed

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

7h3Rabbit opened this issue Sep 13, 2023 · 1 comment

Comments

@7h3Rabbit
Copy link
Contributor

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
Copy link
Member

ylafon commented Apr 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants