Re: [csswg-drafts] [css-color-4] [css-color-5] Mixing with `transparent` seems broken in implementations (#8612)

Agreed, the order of these steps is also undefined : https://github.com/w3c/csswg-drafts/issues/8602

> In Gecko, the HSL case works out because we end up doing https://drafts.csswg.org/css-color-4/#rgb-to-hsl explicitly, which accounts for the NaN hue, but the OKLab conversion we do [goes through xyz](https://searchfox.org/mozilla-central/rev/cdddec7fd690700efa4d6b48532cf70155e0386b/servo/components/style/color/mod.rs#324,341), which doesn't end up with a NaN / none hue.

We have a separate step where we explicitly go from powerless to missing components : https://github.com/csstools/postcss-plugins/blob/main/packages/css-color-parser/src/color-data.ts#L288-L343

_Note that `hwb` is a bit different from the others._

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


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

Received on Monday, 3 April 2023 11:14:28 UTC