- From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
- Date: Mon, 03 Apr 2023 11:04:00 +0000
- To: public-css-archive@w3.org
So the spec should be clearer on how to perform the conversion for Oklch etc. 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. [The spec](https://drafts.csswg.org/css-color-5/#color-mix-result) isn't super-clear on what operations should happen when converting between these color-spaces (unless I've missed it). So it seems that should be clearer. -- GitHub Notification of comment by emilio Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8612#issuecomment-1494119106 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:04:02 UTC