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

> it is totally possible that is ill-informed

The 2020 Web Almanac says that color values account "for 52% of all custom property declarations", although I could not find any figure about the percentage of color properties using `var()`:

https://almanac.httparchive.org/en/2020/css#usage-by-type

I have an archive of more-or-less current CSS from around 200 top-traffic & complex-CSS hosts (which I use for integration-regression testing) and a quick grep shows that about 42% of the CSS files do use `var()` to set color properties, not sure what validity that figure really has.

Also, the folks using preprocessor variables may have their preferences as to avoid the MQ mechanism (or perhaps not).

In any case I assume that the idea is to give a more deterministic/granular way to specify wide-gamut colors, but let's see if the spec authors have something to say about that (maybe just pointing to an older thread where they probably discussed this multiple times already...).

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


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

Received on Sunday, 7 February 2021 20:55:44 UTC