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

> 2\. In step 10, defining `clip`, should we change it to specify it clamps to the range of the color channel, instead of 0-1? This may be a moot point, as it appears that only unbounded spaces which don't go through this portion have channel ranges besides 0-1.

On the one hand, the current text is very precise:

```html
<li>let clip(|color|) be a function which converts |color| to |destination|,
 converts all negative components to zero,
 converts all components greater that one to one,
 and returns the result
```

On the other hand, it could be expanded to cover a `destination` which is not bounded [0,1] like this:

<li>let clip(|color|) be a function which converts |color| to |destination|,
 converts all components less than the lower bound of the reference range to the lower bound,
 converts all components greater than the upper bound of the reference range to the upper bound,
 and returns the result
```

Does that seem clear and understandable?



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


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

Received on Monday, 18 December 2023 18:18:44 UTC