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

> The specification doesn't say how out-of-range values for profiled colors are handled. Are they clamped to their valid range or does an out-of-range value make the color invalid?

The specification now defines this. 

For custom colorspaces, defined by an ICC profile, specified out  of range values are simply clamped to the valid range at computed value time. This is because the ICC profile will not allow the out of range values as input, so this is all that can be done.

For predefined colorspaces, which have a mathematical definition of the transfer function, specified out  of range values are gamut mapped using a relative colorimetric intent, at used value time.

A new section describing relative colorimetric chroma reduction with speculative clamping will be added as an appendix.

Handling of specified values which are in gamut for the specified colorspace, but out of gamut for the display device, will also be covered in the gamut mapping section. Again, relative colorimetric will be used.

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


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

Received on Wednesday, 21 October 2020 17:59:03 UTC