Skip to content

Commit d504654

Browse files
author
Chris Lilley
committed
[css-color-4] a,b,C,h powerless if L=100%, fix w3c#7924
1 parent e59859d commit d504654

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

css-color-4/Overview.bs

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,18 +3074,13 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
30743074
</wpt>
30753075

30763076
The first argument specifies the CIE Lightness.
3077-
This is typically a number between ''0%''
3077+
This is a number between ''0%''
30783078
(representing black)
30793079
and ''100%''
30803080
(representing white),
3081-
<!-- not really true, as noted above
3082-
similar to the lightness argument of ''hsl()''. -->
3083-
However, CIE Lightness <em>can</em> exceed this range on some systems,
3084-
with extra-bright whites using a lightness up to ''400''.
30853081
Values less than ''0%'' must be clamped to ''0%'' at computed-value time;
30863082
values greater than
3087-
''100%'' are permitted (for forwards compatibility with High Dynamic Range (HDR),
3088-
and must not be clamped.
3083+
''100%'' are clamped to ''100%''.
30893084

30903085
The second and third arguments are the distances along the "a" and "b" axes
30913086
in the Lab color space,
@@ -3100,9 +3095,9 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
31003095
representing the [=alpha component=].
31013096

31023097
If the lightness of a Lab color is ''0%'',
3103-
both the a and b components are [=powerless=].
3104-
3105-
Issue: Unsure about when/if a and b become powerless for Lab whites.
3098+
or ''100%''
3099+
both the a and b components are [=powerless=]
3100+
and the color represents black, or white, respectively.
31063101

31073102
<div class="example" id="ex-lab-samples">
31083103
<pre class="lang-css">
@@ -3178,10 +3173,9 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
31783173
If the chroma of an LCH color is ''0%'',
31793174
the hue component is [=powerless=].
31803175
If the lightness of an LCH color is ''0%'',
3176+
or ''100%'',
31813177
both the hue and chroma components are [=powerless=].
31823178

3183-
Issue: Unsure about when/if hue and chroma become powerless for LCH whites.
3184-
31853179
<div class="example" id="ex-lch-samples">
31863180
<pre class="lang-css">
31873181
<span class="swatch" style="--color: rgb(49.06% 13.87% 15.9%)"></span> lch(29.2345% 44.2 27);
@@ -3239,16 +3233,14 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
32393233
</wpt>
32403234

32413235
The first argument specifies the Oklab Lightness.
3242-
This is typically a number between ''0%''
3236+
This is a number between ''0%''
32433237
(representing black)
32443238
and ''100%''
32453239
(representing white).
32463240

32473241
Values less than ''0%'' must be clamped to ''0%''
32483242
at computed-value time;
3249-
values greater than ''100%'' are permitted
3250-
for forwards compatibility,
3251-
and must not be clamped.
3243+
values greater than ''100%'' are clamped to ''100%''.
32523244

32533245
The second and third arguments are the distances along
32543246
the "a" and "b" axes
@@ -3264,7 +3256,9 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
32643256
representing the [=alpha component=].
32653257

32663258
If the lightness of an Oklab color is ''0%'',
3267-
both the a and b components are [=powerless=].
3259+
or ''100%'',
3260+
both the a and b components are [=powerless=]
3261+
and the color represents black, or white, respectively.
32683262

32693263
<div class="example" id="ex-oklab-samples">
32703264
<pre class="lang-css">
@@ -3339,6 +3333,7 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
33393333
If the chroma of an Oklch color is ''0%'',
33403334
the hue component is [=powerless=].
33413335
If the lightness of an Oklch color is ''0%'',
3336+
or ''100%'',
33423337
both the hue and chroma components are [=powerless=].
33433338

33443339

0 commit comments

Comments
 (0)