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

@svgeesus I think there may be a logic error near the end of the raytrace pseudocode in the 2026-02-27 draft.

At `11. set clipped to clip(current)`, `current` doesn't exist.

I think in the 2026-02-02 draft, that step was:
```
let `clipped` be `origin_rgb` clipped to gamut (components in the range 0 to 1), thus trimming off any noise due to floating point inaccuracy
```

There is a `current_OkLCh` that looks to be defined locally to the loop in the logic, but `origin_rgb` gets based on it. So should `current` still be `origin_rgb`?

-- 
GitHub Notification of comment by jparnzen
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10579#issuecomment-4122677476 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 02:20:17 UTC