3 ms·
The 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()
by madeofpalk 7y ago
The 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.