10 ms·
According to what I read in the article, you have to provide the sRGB fallback yourself. I suppose this is only a true annoyance if you're writing CSS by hand (
by pickdenis 7y ago
According to what I read in the article, you have to provide the sRGB fallback yourself. I suppose this is only a true annoyance if you're writing CSS by hand (like I do), but I hear most people these days use Less or some other CSS preprocessor that can easily handle this.
- madeofpalk 7y agoThe article mentions the manual fallback for when the browser does not support the syntax, but I wonder what happens when Chrome gets updated to support color() but is used on a device that does support Wide Gamut Color. I guess the safest thing would be to still treat it as an invalid value and require manual fallback.
- bastawhiz 7y agoChrome should, per the spec, drop the entire rule
- om2 7y agoMedia Queries are the right answer for that case (assuming the default translation to SRGB is unsatisfactory.)
- gardaani 7y agoThis may already happen on Safari and Mac without support for Wide Gamut Color. In that case, the P3 color is converted to sRGB, which typically means clamping to sRGB.
- oliv__ 7y agoGlad to hear there are others out there practicing this fine art haha