Re: [csswg-drafts] [css-color-4] Clarify that `none` is preserved in calculations (#10211)

> On the call, it was mentioned that color space conversion happens when interpolating two colors, even if a color is already in the right color space. This was, naturally, surprising to some, because it sounds like makes no difference, right?
> 
> The spec used to say "conversion (if required)" and this was changed to "always convert" specifically so that _powerless components_ get changed to _missing components_
> [...]

That’s _very_ weird.

I think instead of framing this as color space conversion we need to define two algorithms: 
1. Converting powerless components to missing
2. Converting to another color space. This either calls 1 at the end, or if the two color spaces are the same, it _only_ calls 1.

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


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

Received on Wednesday, 24 April 2024 20:59:30 UTC