We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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 { background-color: var(--primary-color); }
:root { --primary-color: light-dark(#000,#fff); } ... body { background-color: var(--primary-color); }
or
:root { --primary-color: light-dark(#000,#fff); } ... body { fill: var(--primary-color); }
The validator displays the following:
Value Error : background-color [var(--primary-color)] is not a [background-color] value : [var(--primary-color)]
[var(--primary-color)] is not a [fill] value : [var(--primary-color)]
Although, it looks like the "background-color" property is used as an example in the W3C standard.
Standard (CR): https://www.w3.org/TR/css-variables-1/ Standard (Editor's Draft): https://drafts.csswg.org/css-variables/
You can also test the examples with https://tylermorgan.co/ in the validator.
The text was updated successfully, but these errors were encountered:
It looks background-variant properties don't allow css variable in current version.
--bg-color: 50 95% 65%; background: hsl(var(--bg-color));
return
error: CSS: “background”: Cannot invoke "org.w3c.css.values.CssValue.getType()" because "val" is null.
Sorry, something went wrong.
No branches or pull requests
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 { background-color: var(--primary-color); }
or
:root { --primary-color: light-dark(#000,#fff); } ... body { fill: var(--primary-color); }
The validator displays the following:
or
Although, it looks like the "background-color" property is used as an example in the W3C standard.
Standard (CR): https://www.w3.org/TR/css-variables-1/
Standard (Editor's Draft): https://drafts.csswg.org/css-variables/
You can also test the examples with https://tylermorgan.co/ in the validator.
The text was updated successfully, but these errors were encountered: