Re: [csswg-drafts] [css-color-4] Channel clipping breaks author expectations, especially when using 'perceptually uniform' spaces (#9449)

> > All color functions must behave the same with respect to gamut mapping. With color mixing and relative colors you can not assign special behavior to only oklch, oklab, ...

> I don't understand this. Why couldn't we?

> All color functions must behave the same with respect to gamut mapping. With color mixing and relative colors you can not assign special behavior to only oklch, oklab, ...
I don't understand this. Why couldn't we?

Well, you could, but I meant to say that it doesn't have good attributes to have two distinct behaviors:

- just as easy to define out of gamut in any other color function
- harder to explain to authors
- will lead to anti-patterns with authors wrapping colors with seemingly no-op relative colors to opt-in or out of gamut mapping
- there is no benefit to having two behaviors (or am I missing something?)

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


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

Received on Wednesday, 12 June 2024 08:46:47 UTC