Re: [csswg-drafts] [css-color-5] Gamut mapping in HSL/HWB (#7107)

Thanks, that makes sense. I think it would be good to call out that gamut mapping should occur before converting to HSL/HSB, as this does not occur with other intermediate color spaces.

> All CSS gamut mapping occurs in OKLCH.

Yeah, sorry, I meant the part that converts from OKLCH to the `destination` color space in order to check it at each step of the binary search. I was confused whether this destination space was meant to be `HSL` or `sRGB`.

> I would be interested to know whether you found the specification sufficiently clear.

I would say the individual parts were clear, but what was missing for me was a higher level overview of the whole conversion/interpolation algorithm. I found myself jumping around a fair bit trying to figure out in what order to apply each of the parts, e.g. when and when not to apply gamut mapping, when to replace missing components with `0` (before conversion), when to substitute converted powerless and explicit missing components, etc. I eventually figured this out, but a diagram or list of high level steps would have been nice.

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


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

Received on Monday, 7 March 2022 20:03:25 UTC