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

I think that is clear and understandable. One potential alternative would be-

```
<li>let clip(|color|) be a function which converts |color| to |destination|,
 clamps each component to the bounds of the reference range for that component
 and returns the result
```

Or is this functionally different from clamping?

Potential nits that I don't think warrant changes, and are fairly unlikely to cause confusion, but are here for documentation-

* Since we're covering hypothetical future spaces, we _could_ specify that the reference ranges are component-specific, to cover spaces like Oklab with different bounds per component, but that gets wordy, for instance-

```
converts all components less than the lower bound of the reference range for the component to the lower bound,
```

* `alpha` could be inferred as a component to apply this to. Even if it is, alpha values are already clamped at `parsed-value time`, so it would essentially be a no-op.

-- 
GitHub Notification of comment by jamesnw
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9651#issuecomment-1861425392 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 19:33:50 UTC