Skip to content

Commit af50972

Browse files
committed
[css-color-4] Add reference ranges for percents, see w3c#7064
1 parent 1d14fd3 commit af50972

File tree

1 file changed

+85
-1
lines changed

1 file changed

+85
-1
lines changed

css-color-4/Overview.bs

Lines changed: 85 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3407,6 +3407,20 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
34073407
<dfn>lab()</dfn> = lab( [<<percentage>> | none] [<<number>> | none] [<<number>> | none] [ / [<<alpha-value>> | none] ]? )
34083408
</pre>
34093409

3410+
<table>
3411+
<tr>
3412+
<th>Percentages</th>
3413+
<td>Allowed for L, a and b</td>
3414+
</tr>
3415+
<tr>
3416+
<th>Percent reference range&nbsp;</th>
3417+
<td>
3418+
for L: 0% = 0.0, 100% = 100.0<br>
3419+
for a and b: -100% = -125, 100% = 125
3420+
</td>
3421+
</tr>
3422+
</table>
3423+
34103424
<wpt>
34113425
lab-001.html
34123426
lab-002.html
@@ -3464,6 +3478,20 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
34643478
<dfn>lch()</dfn> = lch( [<<percentage>> | none] [<<number>> | none] [<<hue>> | none] [ / [<<alpha-value>> | none] ]? )
34653479
</pre>
34663480

3481+
<table>
3482+
<tr>
3483+
<th>Percentages</th>
3484+
<td>Allowed for L and C</td>
3485+
</tr>
3486+
<tr>
3487+
<th>Percent reference range&nbsp;</th>
3488+
<td>
3489+
for L: 0% = 0.0, 100% = 100.0<br>
3490+
for C: 0% = 0, 100% = 150
3491+
</td>
3492+
</tr>
3493+
</table>
3494+
34673495
<wpt>
34683496
lch-001.html
34693497
lch-002.html
@@ -3534,6 +3562,20 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
35343562
<dfn>oklab()</dfn> = oklab( [<<percentage>> | none] [<<number>> | none] [<<number>> | none] [ / [<<alpha-value>> | none] ]? )
35353563
</pre>
35363564

3565+
<table>
3566+
<tr>
3567+
<th>Percentages</th>
3568+
<td>Allowed for L, a and b</td>
3569+
</tr>
3570+
<tr>
3571+
<th>Percent reference range&nbsp;</th>
3572+
<td>
3573+
for L: 0% = 0.0, 100% = 1.0<br>
3574+
for a and b: -100% = -0.4, 100% = 0.4
3575+
</td>
3576+
</tr>
3577+
</table>
3578+
35373579
<wpt>
35383580
oklab-001.html
35393581
oklab-002.html
@@ -3588,6 +3630,20 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
35883630
<dfn>oklch()</dfn> = oklch( [<<percentage>> | none] [<<number>> | none] [<<hue>> | none] [ / [<<alpha-value>> | none] ]? )
35893631
</pre>
35903632

3633+
<table>
3634+
<tr>
3635+
<th>Percentages</th>
3636+
<td>Allowed for L and C</td>
3637+
</tr>
3638+
<tr>
3639+
<th>Percent reference range&nbsp;</th>
3640+
<td>
3641+
for L: 0% = 0.0, 100% = 1.0<br>
3642+
for C: 0% = 0.0 100% = 0.4
3643+
</td>
3644+
</tr>
3645+
</table>
3646+
35913647
<wpt>
35923648
oklch-001.html
35933649
oklch-002.html
@@ -3915,6 +3971,10 @@ Predefined Color Spaces</h2>
39153971
<th>Percentages</th>
39163972
<td colspan="2">Allowed for R, G and B</td>
39173973
</tr>
3974+
<tr>
3975+
<th>Percent reference range&nbsp;</th>
3976+
<td>for R,G,B: 0% = 0.0, 100% = 1.0</td>
3977+
</tr>
39183978
</table>
39193979

39203980
<pre class="lang-javascript">
@@ -3976,6 +4036,10 @@ Predefined Color Spaces</h2>
39764036
<th>Percentages</th>
39774037
<td colspan="2">Allowed for R, G and B</td>
39784038
</tr>
4039+
<tr>
4040+
<th>Percent reference range&nbsp;</th>
4041+
<td>for R,G,B: 0% = 0.0, 100% = 1.0</td>
4042+
</tr>
39794043
</table>
39804044

39814045
<pre class="lang-javascript">
@@ -4037,6 +4101,10 @@ Predefined Color Spaces</h2>
40374101
<th>Percentages</th>
40384102
<td colspan="2">Allowed for R, G and B</td>
40394103
</tr>
4104+
<tr>
4105+
<th>Percent reference range&nbsp;</th>
4106+
<td>for R,G,B: 0% = 0.0, 100% = 1.0</td>
4107+
</tr>
40404108
</table>
40414109

40424110
<figure>
@@ -4092,6 +4160,10 @@ Predefined Color Spaces</h2>
40924160
<th>Percentages</th>
40934161
<td colspan="2">Allowed for R, G and B</td>
40944162
</tr>
4163+
<tr>
4164+
<th>Percent reference range&nbsp;</th>
4165+
<td>for R,G,B: 0% = 0.0, 100% = 1.0</td>
4166+
</tr>
40954167
</table>
40964168

40974169
<figure>
@@ -4167,6 +4239,10 @@ Predefined Color Spaces</h2>
41674239
<th>Percentages</th>
41684240
<td colspan="2">Allowed for R, G and B</td>
41694241
</tr>
4242+
<tr>
4243+
<th>Percent reference range&nbsp;</th>
4244+
<td>for R,G,B: 0% = 0.0, 100% = 1.0</td>
4245+
</tr>
41704246
</table>
41714247

41724248
<pre class="lang-javascript">
@@ -4242,6 +4318,10 @@ Predefined Color Spaces</h2>
42424318
<th>Percentages</th>
42434319
<td colspan="2">Allowed for R, G and B</td>
42444320
</tr>
4321+
<tr>
4322+
<th>Percent reference range&nbsp;</th>
4323+
<td>for R,G,B: 0% = 0.0, 100% = 1.0</td>
4324+
</tr>
42454325
</table>
42464326

42474327
<pre class="lang-javascript">
@@ -4308,7 +4388,11 @@ Predefined Color Spaces</h2>
43084388
<table>
43094389
<tr>
43104390
<th>Percentages</th>
4311-
<td>Disallowed</td>
4391+
<td>Allowed for X,Y,Z</td>
4392+
</tr>
4393+
<tr>
4394+
<th>Percent reference range&nbsp;</th>
4395+
<td>for X,Y,Z: 0% = 0.0, 100% = 1.0</td>
43124396
</tr>
43134397
</table>
43144398

0 commit comments

Comments
 (0)