Skip to content

[css-color-4] Two small corrections for raytrace gamut mapping pseudocode #14029

Description

@jparnzen

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:

  1. 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.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions