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

> I would prefer a normative solution to the problem of handling "extreme" colors produced by `oklab` and `oklch` (e.g, the ones from https://github.com/w3c/csswg-drafts/issues/9449#issuecomment-1929679581), which gets us to "some very wide gamut".

The value as mentioned in that comment can be expressed in many different ways.

https://colorjs.io/apps/convert/?color=oklch(90%25%2090%25%200deg)&precision=4

For example with `hwb(329.3 10.37% -52.94%)` or `lab(83.87 115.6 1.847)`.

Implementing gamut mapping only for `oklab`, `oklch` would be highly problematic.

I immediately think of these :
- `oklch(from lab(83.87 115.6 1.847) l c h)`
- `lch(from oklch(90% 90% 0deg) l c h)`
- `color-mix(in lch, oklch(90% 90% 0deg), oklch(90% 90% 0deg))`
- ...

How are these affected when gamut mapping is limited to `oklch` and `oklab` notations?



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


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

Received on Tuesday, 5 March 2024 14:18:54 UTC