@@ -2032,11 +2032,12 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
2032
2032
and ''0%'' is a fully-unsaturated gray.
2033
2033
For lightness, ''50%'' represents the "normal" color,
2034
2034
while ''100%'' is white and ''0%'' is black.
2035
+ <!-- unbounded hsl
2035
2036
If the saturation or lightness are less than ''0%''
2036
2037
or greater than ''100%'' ,
2037
2038
they are clamped to those values
2038
2039
at parsed-value time,
2039
- before being converted to an sRGB color.
2040
+ before being converted to an sRGB color. -->
2040
2041
2041
2042
The final argument specifies the alpha channel of the color.
2042
2043
It's interpreted identically to the fourth argument of the ''rgb()'' function.
@@ -2072,9 +2073,10 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
2072
2073
</pre>
2073
2074
</div>
2074
2075
2076
+ <!-- unbounded hsl
2075
2077
An advantage of HSL over LCH is that,
2076
2078
regardless of manipulation,
2077
- the result always lies inside the sRGB gamut.
2079
+ the result always lies inside the sRGB gamut. -->
2078
2080
A disadvantage of HSL over LCH
2079
2081
is that hue manipulation changes the visual lightness,
2080
2082
and that hues are not evenly spaced apart.
@@ -4274,9 +4276,10 @@ with white point |dest-white|:
4274
4276
then |col2| must be [=css gamut mapped=]
4275
4277
so that it [=can be displayed=] .
4276
4278
4279
+ <!-- unbounded hsl
4277
4280
<li id="convert-hslhwb"> If |dest| cannot represent [=out of gamut=] colors,
4278
4281
for example ''hsl'' or ''hwb'' ,
4279
- then |col2| must be [=css gamut mapped=] .
4282
+ then |col2| must be [=css gamut mapped=] . -->
4280
4283
4281
4284
<li id="convert-rectpol"> If |dest-rect| is not the same as |dest|,
4282
4285
in other words |dest| is a <a>cylindrical polar color</a> representation,
@@ -5122,13 +5125,16 @@ CSS Gamut Mapping to an RGB Destination</h3>
5122
5125
which are out of gamut
5123
5126
of an RGB display
5124
5127
and thus require to be <dfn export>css gamut mapped</dfn> .
5128
+
5129
+ <!-- unbounded hsl
5125
5130
It also applies to colors being converted
5126
5131
to HSL or HWB, which cannot express
5127
- colors outside the sRGB gamut.
5132
+ colors outside the sRGB gamut. -->
5133
+
5128
5134
It implements a relative colorimetric intent,
5129
5135
and colors inside the destination gamut are unchanged.
5130
5136
5131
- <wpt>
5137
+ <wpt ignore >
5132
5138
parsing/gamut-mapping.html
5133
5139
</wpt>
5134
5140
@@ -5242,9 +5248,10 @@ Sample Pseudocode for the Binary Search Gamut Mapping Algorithm with Local MINDE
5242
5248
<li> return |current| as the gamut mapped color</li>
5243
5249
</ol>
5244
5250
5245
- <wpt>
5251
+ <!-- unbounded hsl
5252
+ <wpt ignore>
5246
5253
parsing/gamut-mapping.html
5247
- </wpt>
5254
+ </wpt> -->
5248
5255
5249
5256
5250
5257
<!-- color(display-p3 1 1 0)
0 commit comments