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

Thank you @LeaVerou,

That looks really promising!

I did find that it deviates more from the CSS gamut mapping algorithm at or near 0% and 100% lightness.

- https://colorjs.io/apps/gamut-mapping/?color=oklch%2899%25+.8+250%29
- https://colorjs.io/apps/gamut-mapping/?color=oklch%28100%25+.8+250%29
- https://colorjs.io/apps/gamut-mapping/?color=oklch%281%25+.8+250%29
- https://colorjs.io/apps/gamut-mapping/?color=oklch%280%25+.8+250%29

<img width="1394" alt="Screenshot 2024-02-14 at 11 49 04" src="https://github.com/w3c/csswg-drafts/assets/11521496/48e7f6a2-0fa2-4590-927f-d844041f9343">

<img width="1409" alt="Screenshot 2024-02-14 at 11 49 19" src="https://github.com/w3c/csswg-drafts/assets/11521496/76b9eca0-c4e5-46dc-90e0-a170ae948605">

<img width="1404" alt="Screenshot 2024-02-14 at 11 49 34" src="https://github.com/w3c/csswg-drafts/assets/11521496/6af12f9b-e1ca-4fa1-bfa4-ae135f23ede8">

<img width="1403" alt="Screenshot 2024-02-14 at 11 49 52" src="https://github.com/w3c/csswg-drafts/assets/11521496/46464aed-20f9-4e4b-a5dc-e05f932e2ef8">

But maybe that is something that only requires a minor refinement?

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


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

Received on Wednesday, 14 February 2024 10:50:36 UTC