Re: [csswg-drafts] [css-variables] Fallback lists for color properties

> but does not help when it has been set, but to an invalid value. The fallback is discarded by that point.

This is solved by registering the custom property with a `syntax: "<color>"` key in the registration options.

(You still have to use variable-level fallback, not syntax-level fallback; per WG resolution, registering a property does *not* cause us to go back and reparse all the stylesheets so we can throw out now-invalid custom properties. However, it *does* mark syntax-violating properties as "invalid at computed-value time", so variable fallback will properly happen for them.)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2618#issuecomment-385049734 using your GitHub account

Received on Friday, 27 April 2018 18:06:54 UTC