Re: [csswg-drafts] [css-color-4] hue interpolation `longer` when `hue` components are missing (#9224)

Thank you, that makes sense to me.

----

Following those steps I get these results :

`longer` :
- `270deg` when mixing `90deg` and `none`
- `180deg` when mixing `none` and `none`

`shorter`, `increasing`, `decreasing`:
- `90deg` when mixing `90deg` and `none`
- `0deg` when mixing `none` and `none`

```css
color-mix(in hsl longer hue, hsl(90deg 50% 50%), hsl(none 50% 50%))
hsl(270deg 50% 50%)

color-mix(in hsl shorter hue, hsl(90deg 50% 50%), hsl(none 50% 50%))
hsl(90deg 50% 50%)

color-mix(in hsl increasing hue, hsl(90deg 50% 50%), hsl(none 50% 50%))
hsl(90deg 50% 50%)

color-mix(in hsl decreasing hue, hsl(90deg 50% 50%), hsl(none 50% 50%))
hsl(90deg 50% 50%)


color-mix(in hsl longer hue, hsl(none 50% 50%), hsl(none 50% 50%))
hsl(180deg 50% 50%)

color-mix(in hsl shorter hue, hsl(none 50% 50%), hsl(none 50% 50%))
hsl(0deg 50% 50%)

color-mix(in hsl increasing hue, hsl(none 50% 50%), hsl(none 50% 50%))
hsl(0deg 50% 50%)

color-mix(in hsl decreasing hue, hsl(none 50% 50%), hsl(none 50% 50%))
hsl(0deg 50% 50%)
```


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


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

Received on Monday, 2 October 2023 20:34:21 UTC