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

romainmenke has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-color-4] hue interpolation `longer` when `hue` components are missing ==
https://drafts.csswg.org/css-color/#hue-interpolation

As far as I could tell it isn't currently defined when the hue angle fixup step should be done.
Only that it should be done before linear interpolation.

The algorithms also don't account for either angle possible being `missing`.

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

is this :
- `longer` between `90deg` and `0deg`
- `longer` between `90deg` and `NaN`
- none of the above, `none` is with `90deg`

-----

Possible the other hue interpolation methods are equally affected by this, but longer is most obvious.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9224 using your GitHub account


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

Received on Tuesday, 22 August 2023 22:23:32 UTC