Re: [csswg-drafts] [css-color-4] Gamut Mapping Clarifications (#9651)

It seems that 

```
if the Lightness of |origin_Oklch| is greater than or equal to 100%,
convert `oklab(1 0 0 / origin.alpha)` to |destination| and return it as the gamut mapped color
```

(and `oklab(1 0 0 / origin.alpha)` for "less than than or equal to 0%")

would be clear, and correct in all these cases.

[`oklab(1 0 0)`](https://colorjs.io/apps/convert/?color=oklab(1%200%200)&precision=6)
[`oklab(0 0 0)`](https://colorjs.io/apps/convert/?color=oklab(0%200%200)&precision=6)

_(Note to self, check why Color.js claims `color(acescc -0.3584 -0.3584 -0.3584)` is gamut mapped); bounds rounded off?_

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


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

Received on Friday, 15 December 2023 20:27:21 UTC