Skip to content

Commit 4ef4ad1

Browse files
committed
[css-color-4] Display as black or whete when L=0% or 100% is due to gamut mapping #8794
1 parent 699d372 commit 4ef4ad1

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

css-color-4/Overview.bs

+10-6
Original file line numberDiff line numberDiff line change
@@ -3179,8 +3179,9 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
31793179

31803180
If the lightness of a Lab color (after clamping) is ''0%'',
31813181
or ''100%''
3182-
both the a and b components are ''0''
3183-
and the color represents black, or white, respectively.
3182+
both the a and b components become powerless
3183+
and the color will be displayed as black, or white, respectively
3184+
due to gamut mapping to the display.
31843185

31853186
<div class="example" id="ex-lab-samples">
31863187
<pre class="lang-css">
@@ -3261,7 +3262,8 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
32613262
If the lightness of an LCH color (after clamping) is ''0%'',
32623263
or ''100%'',
32633264
the hue component is [=powerless=]
3264-
and the chroma is ''0''.
3265+
and the color will be displayed as black, or white, respectively
3266+
due to gamut mapping to the display.
32653267

32663268
<div class="example" id="ex-lch-samples">
32673269
<pre class="lang-css">
@@ -3345,8 +3347,9 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
33453347

33463348
If the lightness of an Oklab color is ''0%'' or 0,
33473349
or ''100%'' or 1.0,
3348-
both the a and b components are 0
3349-
and the color represents black, or white, respectively.
3350+
both the a and b components become powerless
3351+
and the color will be displayed as black, or white, respectively
3352+
due to gamut mapping to the display.
33503353

33513354
<div class="example" id="ex-oklab-samples">
33523355
<pre class="lang-css">
@@ -3425,7 +3428,8 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
34253428
If the lightness of an Oklch color is ''0%'' or 0,
34263429
or ''100%'' or 1.0,
34273430
the hue component is [=powerless=]
3428-
and the chroma is ''0''.
3431+
and the color will be displayed as black, or white, respectively
3432+
due to gamut mapping to the display.
34293433

34303434
<div class="example" id="ex-oklch-samples">
34313435
<pre class="lang-css">

0 commit comments

Comments
 (0)