Re: [csswg-drafts] [css-color-4] Clamping of color values (#3845)

The specification doesn't say how out-of-range values for [profiled colors](https://www.w3.org/TR/css-color-4/#icc-colors) are handled. Are they clamped to their valid range or does an out-of-range value make the color invalid?

The [rgb()](https://www.w3.org/TR/css-color-4/#rgb-functions), [hsl()](https://www.w3.org/TR/css-color-4/#the-hsl-notation) and other functions explicitly mention that their values are clamped to the valid range: "Values outside these ranges are not invalid, but are clamped to the ranges defined here at computed-value time." I would expect the values for profiled colors to be clamped, too.


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

Received on Sunday, 5 April 2020 08:45:24 UTC