Re: [csswg-drafts] [css-color-4] Clarify that `none` is preserved in calculations (#10211)

`rgb()` with value ranges of `[0,255]` vs. `color(srgb)` with value ranges of `[0,1]` will also be surprising.

```
color-mix(
  in srgb
  rgb(calc(none + 50) 50% 0),
  color(srgb 0.5 0.5 0),
)
```

`calc(none + 50)` is perfectly reasonable in the `[0,255]` value range.
But wildly out of gamut in `[0,1]`.

So not only color space conversions are a hurdle, but also the different color notations and value ranges.

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


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

Received on Monday, 29 April 2024 21:43:45 UTC