Re: [csswg-drafts] [css-color-4] Evaluate static gamut mapping algorithms for oklab/oklch spaces (#10579)

@jamesnw @facelessuser I have committed early drafts or EdgeSeeker and Ray Trace sections into the spec (including a figure of yours, @facelessuser which I request permission to use - please let me know and I will of course remove it if you would rather not).

This commit gives implementations a free choice of the three algorithms but they must use one of them whenever CSS says a GM is required. Which is currently when mapping to a display.

We also have a resolution to use GMA to rec2020 to take `Oklab` and `Oklch`, which is not yet in the spec and **will affect computed values.**

The main blocker from my POV is generating pseudocode versions of these algorithms; they are faster than the binary search with local MINDE but the code is somewhat more complex and might not lend itself to pseudocode. But these algorithms need to be implementable from the spec.

I didn't add timing results but did add general mentions of quality/speed/memory tradeoffs.

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


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

Received on Thursday, 22 January 2026 23:02:05 UTC