Re: [csswg-drafts] [css-color-4] Converting out of gamut colors to `hsl` can result in negative saturation with the sample code (#9222)

CSS Color 3 s[aid to clamp negative saturation](https://www.w3.org/TR/css-color-3/#hsl-color) at parse time (and was silent about generated values, since it was sRGB-only). This is [tested in ](https://wpt.fyi/results/css/css-color/t424-hsl-clip-outside-gamut-b.xht?label=master&label=experimental&aligned) and browsers are interoperable.

Looks like that parse-time check should be added back to CSSColor 4, for interoperability.

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


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

Received on Saturday, 16 December 2023 23:22:36 UTC