Re: [csswg-drafts] [css-color-4] Expand the concept of analogous components to analogous sets of components to minimize `none` → `0` conversions (#10210)

I actually just realized a pretty important reason to do this: it means the result can be consistent regardless of the conversion path.

For example, let’s take a conversion from sRGB to LCh.
The conversion path using XYZ D65 as a connection space is as follows: sRGB → Linear sRGB → XYZ D65 → XYZ D50 → Lab → LCH

Suppose we’re converting `white`.
`white` in XYZ D50 is `color(xyz-d50 0.9643 1 0.8251)` which is `lab(100 none none)`.
a and b have no analogous components, so when converted to LCh they are converted to `lch(100 0 0)`.
However, if we consider them an analogous *set*, then can be converted to `lch(100 none none)`.

-- 
GitHub Notification of comment by LeaVerou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10210#issuecomment-2128262598 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 24 May 2024 00:14:27 UTC