- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Wed, 24 Apr 2024 18:33:33 +0000
- To: public-css-archive@w3.org
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_ [12. Color Interpolation](https://drafts.csswg.org/css-color-4/#interpolation): > 2. converting them to a given color space which will be referred to as the interpolation color space below. If one or both colors are already in the interpolation colorspace, this conversion changes any [powerless](https://drafts.csswg.org/css-color-4/#powerless-color-component) components to [missing](https://drafts.csswg.org/css-color-4/#missing-color-component) values This is further explained in [12.2. Interpolating with Missing Components](https://drafts.csswg.org/css-color-4/#interpolation-missing) > If a color with a carried forward [missing component](https://drafts.csswg.org/css-color-4/#missing-color-component) is interpolated with another color which is not missing that component, the missing component is treated as having the other color’s component value. -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10211#issuecomment-2075583401 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 18:33:35 UTC