Re: [csswg-drafts] [css-color-4] Expected behavior around lightness 0 or 100% in Oklab/Oklch/Lab/LCH? (#10109)

> you'll be able to see a triangle shape moving around, which corresponds to the edge of the sRGB gamut.

I see it now :)

To me this feels more like a bug, something that could/should go away by improving the specified gamut mapping algorithm.

Whereas clipping is very crude and can easily give you weird results.
And clipping doesn't leave any room for improvement.

Gamut mapped:

<img width="525" alt="Screenshot 2024-03-21 at 18 18 46" src="https://github.com/w3c/csswg-drafts/assets/11521496/f8efec89-a191-4b3b-b357-0b2d161d888b">

Clipped:

<img width="537" alt="Screenshot 2024-03-21 at 18 18 39" src="https://github.com/w3c/csswg-drafts/assets/11521496/e8c38e62-df20-4907-8523-b4868dfd9c5b">



-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10109#issuecomment-2013126148 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 17:26:46 UTC