Skip to content

Commit be48b10

Browse files
committed
[css-color-4] Restored parse-time clamping of HSL negative saturation to 0, which is current interop behavior from CSS Color 3. #9222
1 parent 1b3a4bf commit be48b10

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

css-color-4/Overview.bs

+9-5
Original file line numberDiff line numberDiff line change
@@ -2125,12 +2125,16 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
21252125
and ''0%'' or ''0'' is a fully-unsaturated gray.
21262126
For lightness, ''50%'' or ''50'' represents the "normal" color,
21272127
while ''100%'' or ''100'' is white and ''0%'' or ''0'' is black.
2128-
<!-- unbounded hsl
2129-
If the saturation or lightness are less than ''0%''
2130-
or greater than ''100%'',
2131-
they are clamped to those values
2128+
2129+
<!-- https://github.com/w3c/csswg-drafts/issues/9222 -->
2130+
If the saturation is less than ''0%''
2131+
it is clamped to ''0%''
21322132
at parsed-value time,
2133-
before being converted to an sRGB color. -->
2133+
before being converted to an sRGB color.
2134+
2135+
<wpt>
2136+
t424-hsl-clip-outside-gamut-b.xht
2137+
</wpt>
21342138

21352139
The final argument specifies the alpha channel of the color.
21362140
It's interpreted identically to the fourth argument of the ''rgb()'' function.

0 commit comments

Comments
 (0)