Re: [csswg-drafts] [css-color-5] Clarification on how `channel keywords` with multiple specified types work (#7876)

This seems quite unintuitive vs treating all channels consistently as percentages, because you have to account for different ranges yourself in any calculations. The behavior of something like `lch(from lch(70% 45 30) alpha c h / l)` and `oklch(from oklch(70% 45 30) alpha c h / l)` is very different. With `lch`, the `l` channel becomes `1%`, but with `oklch` it is `100%` due to the different ranges. Treating channels as percentages in calculations would make this a lot more consistent.

Also given that Safari 16.4 already shipped, and matches WPT as it is now, would it not be a breaking change for them also to switch to this new interpretation?

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


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

Received on Thursday, 13 April 2023 16:26:57 UTC