Re: [csswg-drafts] [css-color-4] Need a future-proof way to adjust lightness of a color (#10110)

How does `okhsl` behave when it is given inputs that would go out of `srgb` gamut in equivalent functions.

For example `rgb(from color(display-p3 1 0.5 0.5) r g b)` describes a color with `rgb()` that is still outside the `srgb` space.

How would `okhsl` behave in such cases?

In other words how do you give this strong guarantee of "always within gamut" without have surprising behavior in some, but not all css color functions.

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


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

Received on Thursday, 21 March 2024 11:59:36 UTC