Re: [csswg-drafts] [css-color-4] Missing info about Premultiplication and Undefined values (#7536)

This will produce occasionally surprising results, where the two colors have matching components but the scales or offsets are different. For example copying OKLCH hue to an HSL color with missing hue gives you a result, but that color is not the same hue. 

`rebeccapurple` converted to  OKLCH `oklch(44.03% 0.16 303.4)` and converted to HSL is `hsl(270 50% 40%)`

Now interpolate `oklch(44.03% 0.16 303.4)`  with `hsl(none 50% 40%)` and the second color becomes `hsl(303.4 50% 40%)` 

`rebeccapurple` is `rgb(40%, 20%, 60%)`
`hsl(303.4 50% 40%)`  is `rgb(60% 20% 57.73%)`


Or copying an OKLCH Lightness (range 0 to 1) to a CIE LCH Lightness (range 0 to 100) will work well if the percentage form was used, but oddly if the number form was used.

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


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

Received on Saturday, 30 July 2022 13:36:32 UTC