@@ -1316,7 +1316,9 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions</h2>
1316
1316
while ''100%'' is white and ''0%'' is black.
1317
1317
If the saturation or lightness are less than ''0%''
1318
1318
or greater than ''100%'' ,
1319
- they are clamped to those values before being converted to an RGB color.
1319
+ they are clamped to those values
1320
+ at computed value time,
1321
+ before being converted to an sRGB color.
1320
1322
1321
1323
The final argument specifies the alpha channel of the color.
1322
1324
It's interpreted identically to the fourth argument of the ''rgb()'' function.
@@ -1852,9 +1854,11 @@ HWB Colors: ''hwb()'' function</h2>
1852
1854
as a percentage from ''0%'' (no whiteness) to ''100%'' (full whiteness).
1853
1855
Similarly, the third argument specifies the amount of black to mix in,
1854
1856
also from ''0%'' (no blackness) to ''100%'' (full blackness).
1855
- Values outside of these ranges make the function invalid.
1857
+ Values outside of these ranges
1858
+ are not invalid,
1859
+ but are clamped to the ranges defined here at computed-value time.
1856
1860
If the sum of these two arguments is greater than 100%,
1857
- then at computed-value time they are normalized to add up to 100%,
1861
+ then at computed-value time they are further normalized to add up to 100%,
1858
1862
with the same relative ratio.
1859
1863
1860
1864
The fourth argument specifies the alpha channel of the color.
@@ -2176,7 +2180,7 @@ Device-independent Colors: Lab and LCH</h2>
2176
2180
L=0% is deep black (no light at all)
2177
2181
while L=100% is a diffuse white
2178
2182
2179
- Values greater than 100 would correspond to specular highlights,
2183
+ Values of L greater than 100 would correspond to specular highlights,
2180
2184
but their precise color is undefined in this specification.
2181
2185
Usefully, L=50% is mid gray, by design,
2182
2186
and equal increments in L are evenly spaced visually:
@@ -2200,6 +2204,7 @@ Device-independent Colors: Lab and LCH</h2>
2200
2204
and are close to the L axis;
2201
2205
saturated colors lie far from the L axis.
2202
2206
2207
+
2203
2208
<!-- diagram here -->
2204
2209
2205
2210
The illuminant is D50 white, a standardized daylight spectrum with a color temperature of 5000K,
@@ -2234,10 +2239,6 @@ Device-independent Colors: Lab and LCH</h2>
2234
2239
</figcaption>
2235
2240
</figure>
2236
2241
2237
- In Lab and LCH, if two colors have the same L value,
2238
- they appear to have the same visual lightness--
2239
- regardless of how different their hues are.
2240
-
2241
2242
<!-- because Luv is not widely used nowadays, no need to say LCH(ab)
2242
2243
to distinguish from LCH(uv) -->
2243
2244
@@ -2248,7 +2249,7 @@ Device-independent Colors: Lab and LCH</h2>
2248
2249
sRGB blue is lab(29.567% 68.298,-112.0294)
2249
2250
while
2250
2251
sRGB yellow is lab(97.607% -15.753 93.388).
2251
- In Lab, if two colors have the same measured L value,
2252
+ In Lab and LCH , if two colors have the same measured L value,
2252
2253
they have identical visual lightness.
2253
2254
HSL and related polar RGB models were developed
2254
2255
in an attempt
@@ -2286,7 +2287,7 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
2286
2287
''100%'' are permitted (for forwards compatibility with High Dynamic Range (HDR),
2287
2288
and must not be clamped.
2288
2289
2289
- The second and third arguments are the distances along the "a" and "b" axises
2290
+ The second and third arguments are the distances along the "a" and "b" axes
2290
2291
in the Lab colorspace,
2291
2292
as described in the previous section.
2292
2293
These values are signed
0 commit comments