- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Tue, 13 Feb 2024 18:41:23 +0000
- To: public-css-archive@w3.org
Oh, my. In CSS Color 3, [for `hsl()` it says](https://www.w3.org/TR/css-color-3/#hsl-color): > If saturation is less than 0%, implementations must clip it to 0%. > If the resulting value is outside the device gamut, implementations must clip it to the device gamut. This clipping should preserve the hue when possible, but is otherwise undefined. (In other words, the clipping is different from applying the rules for clipping of RGB colors after applying the algorithm below for converting HSL to RGB.) (No mention of clipping lightness). And [for `hsla()` it says](https://www.w3.org/TR/css-color-3/#hsla-color): > Implementations must clip the hue, saturation, and lightness components of HSLA color values to the device gamut according to the rules for the HSL color value composed of those components. The wording in both is somewhat confusing, as it mixes up parse-time clipping and used-value mapping to the display gamut. -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9222#issuecomment-1942170599 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 13 February 2024 18:41:25 UTC