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

One more possible error:

The fifth bullet comparison under `cast a ray`, under line item 5 (`if abs(d) < 1E-12`) should be greater-than and not less-than.

I've confirmed this is greater-than in both the colorjs.io gamut mapping playground raytrace code and in the ColorAide raytrace code. With less-than, the enclosed logic doesn't seem to execute, or rarely will.

Aside: what's the basic concept for the value of 1e-12? Is it an epsilon to account for floating point fudging?

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


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

Received on Wednesday, 25 March 2026 03:59:24 UTC