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

@svgeesus As hard as it is to say, my earlier fix was dumb. While it "works" I jumped too quickly with a Band-Aid. I've created a PR #13416. That shows a proper fix.

Long story short, this is a numerical instability issue due to floating-point numbers. Just artificially clamping `tnear` is not the correct approach. The real solution is ensuring the direction is not too small (greater than some epsilon suitable for the unit type).

Anyway, it looks like I don't meet some criteria in PR due to affiliation, but that at least shows what it is that should be done.

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


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

Received on Friday, 30 January 2026 05:41:56 UTC