- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 12 Jun 2024 11:10:24 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-color-5] Behavior of `none` in relative color syntax``, and agreed to the following: * ``RESOLVED: `none` in calculations is converted to 0 when converting a color to a different color space. It is still preserved otherwise, and is still preserved when used as the whole value of a component.`` <details><summary>The full IRC log of that discussion</summary> <fantasai> lea: We have this concept of "none", which defines a missing color component<br> <emilio> lea, can you use a mic?<br> <fantasai> lea: when you interpolate with another color, and the other color has an actual number<br> <fantasai> lea: then that component will take its value from the other color<br> <fantasai> lea: This concept started for representing achromatic colors<br> <fantasai> lea: but it also allows specifying parts of color and adding in by interpolation, which is useful<br> <fantasai> lea: we recently resolved to preserve none in calculations<br> <fantasai> lea: previously computed to zero, in order to avoid exposing color space math<br> <ChrisL> q+ to ask if the edits suggested in https://github.com/w3c/csswg-drafts/issues/10151#issuecomment-2140647146 are sufficient, or is more needed<br> <fantasai> lea: but implementers interpreted as "any time you do any math, compute to zero" which isn't needed<br> <fantasai> lea: in April we resolved to preserve "none" in calculations<br> <astearns> ack lea<br> <fserb> +1<br> <fantasai> ChrisL: Suggest we adopt changes proposed by Romain Menke<br> <fantasai> ChrisL: idk if we need more changes to close the issue<br> <fantasai> -> https://github.com/w3c/csswg-drafts/issues/10151#issuecomment-2140647146<br> <fantasai> lea: that's a problem from a different issue<br> <lea> https://github.com/w3c/csswg-drafts/issues/10211#issuecomment-2083735046<br> <fantasai> lea: right now we have concept of analogous color spaces<br> <fantasai> lea: can convert to a different color space, can convert none<br> <fantasai> lea: e.g. lch and oklch, a lightness of none will be preserved<br> <fantasai> lea: you make the none's zeroes, you convert to other color space, you plug the none's back to the alogous components<br> <fantasai> lea: but wouldn't work if you preserve calculations if different scales<br> <fantasai> lea: e.g. rgb and color(rgb)<br> <fantasai> lea: in color function range is 0-1<br> <fantasai> lea: in rgb the range is 0-255<br> <fantasai> lea: so adding 50 to rgb color is 20%, but srgb using color function is nonsensical<br> <fantasai> lea: I think that should be allowed<br> <fantasai> lea: not sure what the solution is here<br> <fantasai> lea: but preserving calculations when converting to differnet color space is iffy<br> <fantasai> lea: preserve for other operations, but maybe not converting colors<br> <astearns> ack ChrisL<br> <Zakim> ChrisL, you wanted to ask if the edits suggested in https://github.com/w3c/csswg-drafts/issues/10151#issuecomment-2140647146 are sufficient, or is more needed<br> <fantasai> lea: either preserve none as a whole or drop ti<br> <fantasai> ChrisL: I'm not sure<br> <fantasai> ChrisL: I think preserving none is the right thing, but I'm not sufficiently sure<br> <fantasai> lea: when converting color spcaes, numbers mean different thing<br> <fantasai> lea: having a whole component as none made sense, but calculations if converting it's ...<br> <fantasai> lea: anything we come up with would be way too weird<br> <miriam> +1 preserve none unless converting spaces<br> <emilio> nope<br> <fantasai> fserb: when crossing function boundaries where maybe stop making sense, you need to convert none<br> <fantasai> lea: agree, anythng else seems super weird<br> <fantasai> fserb: think about those boundaries and resolve at them<br> <lea> PROPOSED RESOLUTION: `none` in calculations is converted to 0 when converting a color to a different color space. It is still preserved otherwise, and is still preserved when used as the whole value of a component.<br> <lea> RESOLVED: `none` in calculations is converted to 0 when converting a color to a different color space. It is still preserved otherwise, and is still preserved when used as the whole value of a component.<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10151#issuecomment-2162739580 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 12 June 2024 11:10:25 UTC