NOTE: I mentioned these in the thread on #10579 but wanted to create a quick issue since they haven't been addressed in the working draft yet.
There are two corrections that need to be made to the raytracing gamut mapping pseudocode in the CSS Color 4 working draft, as of 2026-06-09:
- At
11. set clipped to clip(current), current doesn't exist and should most likely be origin_rgb. See the the 2026-02-02 working draft that mentioned origin_rgb at the time.
- The fifth bullet comparison under
cast a ray, under line item 5, (if abs(d) < 1E-12) should be greater-than (>), not less-than (<). color.js and coloraide both use greater-than as expected.
NOTE: I mentioned these in the thread on #10579 but wanted to create a quick issue since they haven't been addressed in the working draft yet.
There are two corrections that need to be made to the raytracing gamut mapping pseudocode in the CSS Color 4 working draft, as of 2026-06-09:
11. set clipped to clip(current),currentdoesn't exist and should most likely beorigin_rgb. See the the 2026-02-02 working draft that mentionedorigin_rgbat the time.cast a ray, under line item 5,(if abs(d) < 1E-12)should be greater-than (>), not less-than (<). color.js and coloraide both use greater-than as expected.