News for hackers. Stuff that matters.
Re:Wide Gamut Color in CSS with Display-P3 by madeofpalk on Monday March 02, 2020 @08:12PM (#22470902)
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.
Re:Wide Gamut Color in CSS with Display-P3 by gardaani on Tuesday March 03, 2020 @03:46AM (#22472901)
This 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.
Re:Wide Gamut Color in CSS with Display-P3 by om2 on Monday March 02, 2020 @09:55PM (#22471404)
Media Queries are the right answer for that case (assuming the default translation to SRGB is unsatisfactory.)
Re:Wide Gamut Color in CSS with Display-P3 by bastawhiz on Monday March 02, 2020 @09:09PM (#22471218)
Chrome should, per the spec, drop the entire rule