Re: [csswg-drafts] [css-color-4] Percentage reference ranges for `lab()`/`oklab()`/`lch()`/`oklch`/`color()` (#7064)

Not discussed in today's meeting: the impact on **resolved values** and in particular on **serialization**.

It seems to me that the a,b, C and H values should resolve percentages, so for example an OKLCH Chroma of 70% would serialize as (0.7 * 0.4) = 0.28 while an LCH Chroma of 70% would serialize as (0.7 * 150) = 105. This also makes the serialized form compatible with what was specified previously.

For Lightness though currently the serialized form specifies a percentage. Should it continue to do so, or should the percentages be resolved so an OKLab Lightness of 50% serializes as 0.5 while a CIE Lab Lightness of 50% serializes as 50?

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


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

Received on Wednesday, 16 February 2022 20:33:25 UTC