- From: Isaac Muse via GitHub <noreply@w3.org>
- Date: Fri, 30 Jan 2026 15:37:57 +0000
- To: public-css-archive@w3.org
Color.js is [updated](https://github.com/color-js/apps/commit/dc9a2cc036884e8b0be257a617b1ff1130bb8f13), and ColorAide has been released with the updates and now does gamut mapping with the ray trace approach using OkLCh. The reason the recent issue went undetected for so long was simply that the threshold of `1e-6` prevented the anchor from getting too close to the target color most of the time. When I was stress testing over the last couple of days, I made that threshold even smaller, which exposed the numerical instability as the direction approached zero. `tnear` is allowed to be very big, and should be at times, but when the direction is smaller than the floating point precision, `tnear` can be large and nonsense. Only because we are often working with small values that do not trigger this case, `tnear` is usually relatively small. That was my mistake, and if I had spent just a little longer thinking about it, I would have come to that conclusion the first time. -- GitHub Notification of comment by facelessuser Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10579#issuecomment-3824359580 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 15:37:58 UTC