Skip to content

Commit b7b01ad

Browse files
author
Chris Lilley
committed
[css-color] Fix color() syntax to add srgb-linear, xyz-forms. Fix w3c#6858
1 parent 11f5419 commit b7b01ad

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

css-color-4/Overview.bs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3517,8 +3517,9 @@ Predefined Color Spaces</h2>
35173517
<dfn>color()</dfn> = color( <<colorspace-params>> [ / <<alpha-value>> ]? )
35183518
<dfn>colorspace-params</dfn> = [ <<predefined-rgb-params>> | <<xyz-params>>]
35193519
<dfn>predefined-rgb-params</dfn> = <<predefined-rgb>> [ <<number>> | <<percentage>> | none ]{3}
3520-
<dfn>predefined-rgb</dfn> = srgb | display-p3 | a98-rgb | prophoto-rgb | rec2020
3521-
<dfn>xyz-params</dfn> = xyz [ <<number>> | none ]{3}
3520+
<dfn>predefined-rgb</dfn> = srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020
3521+
<dfn>xyz-params</dfn> = <<xyz>> [ <<number>> | none ]{3}
3522+
<dfn>xyz</dfn> = xyz | xyz-d50 | xyz-d65
35223523
</pre>
35233524

35243525
<!-- check this test, remove any fallback testing -->

css-color-5/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,8 +1308,9 @@ The OKLCH chroma has dropped from 0.251 to 0.117.
13081308
<dfn>colorspace-params</dfn> = [<<custom-params>> | <<predefined-rgb-params>> | <<xyz-params>>]
13091309
<dfn>custom-params</dfn> = <<dashed-ident>> [ <<number>> | <<percentage>> | none ]#
13101310
<dfn>predefined-rgb-params</dfn> = <<predefined-rgb>> [ <<number>> | <<percentage>> | none ]{3}
1311-
<dfn>predefined-rgb</dfn> = srgb | display-p3 | a98-rgb | prophoto-rgb | rec2020
1312-
<dfn>xyz-params</dfn> = xyz [ <<number>> | none ]{3}
1311+
<dfn>predefined-rgb</dfn> = srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020
1312+
<dfn>xyz-params</dfn> = <<xyz>> [ <<number>> | none ]{3}
1313+
<dfn>xyz</dfn> = xyz | xyz-d50 | xyz-d65
13131314
</pre>
13141315

13151316
<!-- check this test, remove any fallback testing -->
@@ -1366,7 +1367,8 @@ the allowed [=channel keywords=] are:
13661367

13671368
* <dfn value for="color()">x</dfn>, <dfn value for="color()">y</dfn>, <dfn value for="color()">z</dfn> are all <<number>>s
13681369
that correspond to the [=origin color's=] X, Y and Z channels
1369-
after its conversion to relative, D50-adapted CIE XYZ color space.
1370+
after its conversion to relative CIE XYZ color space
1371+
adapted to the relevant white point.
13701372

13711373
The parameters have the following form:
13721374

0 commit comments

Comments
 (0)