- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 10 May 2023 17:04:57 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-color-4] Allow out-of-gamut HSL/HWB colors (previously "Move gamut mapping to a future spec")`, and agreed to the following: * `RESOLVED: Make color-mix() and RCS using rgb, hsl and hwb return round-trippable, unbounded results in color(srgb ...)` <details><summary>The full IRC log of that discussion</summary> <bramus> chris: for round tripping we will allow …. that is not up for discussion but it does not work.<br> <bramus> chris: can we relax that?<br> <Rossen_> https://github.com/w3c/csswg-drafts/issues/8444#issuecomment-1518663196<br> <bramus> chris: proposal is that instead we return color[srgb] which allows the round tripping<br> <bramus> chris: is a breaking change in WPT though<br> <bramus> chris: did not hear any negative feedback so far<br> <emilio> q+<br> <bramus> Rossen_: opinions other than https://github.com/w3c/csswg-drafts/issues/8444#issuecomment-1518663196?<br> <bramus> iank_: not sure anyone from google has seen this<br> <bramus> chris: it is a google proposal<br> <bramus> iank_: ah, missed that<br> <Rossen_> ack emilio<br> <bramus> emilio: it seems reasonable, but concerned about color-mix but that has shipped in Safari and is implemented in Chrome<br> <argyle> shipped, test it here https://color-mix.style<br> <bramus> emilio: for color-mix result depens on the colors being legacy ones or not?<br> <bramus> emilio: maybe we can do "if the colors are relative"?<br> <bramus> emilio: we return legacy rbg if you mix legacy rbg<br> <bramus> chris: problem is if you mix in HSL and get OOG color, it does clamping<br> <bramus> emilio: but only happens if you mix legacy colors in HSL?<br> <bramus> chris: I believe so, yes<br> <bramus> emilio: I guess not clamping would be … if we can get away with returning color() it might be OK<br> <bramus> chris: we have to say what happens in the spec<br> <bramus> emilio: no strong opinions as long as its consistent<br> <bramus> Rossen_: the more we prolong this, it will get worse<br> <bramus> Rossen_: any objections to chris’s proposal?<br> <bramus> emilio: only in hsl?<br> <bramus> chris: rgb, hsl, and hwb<br> <bramus> chris: inputs to mix in HSL can be anything<br> <bramus> chris: if you mix in hsl, output needs to be hsl, and wil serialize as rgb<br> <bramus> emilio: I thought we serialize as a color fn<br> <bramus> Rossen_: let’s move on<br> <TabAtkins> I think you've gotten pretty confused Emilio - `color-mix(hsl ...)` currently will resolve to an HSL color (serialized with `hsl()`).<br> <bramus> Rossen_: proposed resolution: make color-mix() and RCS using rgb, hsl and hwb return round-trippable, unbounded results in color(srgb ...)<br> <emilio> TabAtkins: oh, I thought we didn't serialize those as hsl(...) at all<br> <TabAtkins> once they're resolved to a definite color they gotta be serialized as *something*<br> <bramus> RESOLVED: Make color-mix() and RCS using rgb, hsl and hwb return round-trippable, unbounded results in color(srgb ...)<br> <bramus> Rossen_: might consider Scroll-driven breakout<br> <bramus> Rossen_: otherwise can start with scroll-animations next week<br> <chris> yeah and they get serialized as legacy rgb(r,g,b)<br> <emilio> ISTR at the point I wrote the gecko issue I wrote it so that we serialize in color(srgb...)<br> <emilio> But that changed apparently, ok<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8444#issuecomment-1542537362 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 10 May 2023 17:04:58 UTC