Re: [csswg-drafts] [css-color-4] Concerns about color() function fallback (#5931)

> Plus, this doesn't work. [...] it will not cause an error until after it has been replaced in the color property [...] this requires yet another declaration

Well, it works in my implementation (if the value contains a _single_ `var()` substitution that does not yield a valid value, then the fallback is directly used), but yes you are right that in browsers it does require another declaration.

It isn't that cumbersome though, and does the job. The alternative of a 'native' fallback is problematic, as explained by @svgeesus.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 March 2021 22:10:23 UTC