Skip to content

Commit 31640eb

Browse files
committed
[css-color] Add missing 'none' to alpha in color(), fix w3c#7397
1 parent 34e3585 commit 31640eb

2 files changed

Lines changed: 37 additions & 38 deletions

File tree

css-color-4/Overview.bs

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3892,13 +3892,13 @@ https://github.com/w3c/csswg-drafts/issues/4621
38923892
-->
38933893

38943894
<!--
3895-
████████ ████████ ████████ ████████ ████████ ████████ ████ ██ ██ ████████ ████████
3895+
████████ ████████ ████████ ████████ ████████ ████████ ████ ██ ██ ████████ ████████
38963896
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██ ██
38973897
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██ ██
38983898
████████ ████████ ██████ ██ ██ ██████ ██████ ██ ██ ██ ██ ██████ ██ ██
38993899
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████ ██ ██ ██
39003900
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██
3901-
██ ██ ██ ████████ ████████ ████████ ██ ████ ██ ██ ████████ ████████
3901+
██ ██ ██ ████████ ████████ ████████ ██ ████ ██ ██ ████████ ████████
39023902
-->
39033903

39043904
<!--
@@ -3942,7 +3942,7 @@ Predefined Color Spaces</h2>
39423942
like RCS and custom colors
39433943
-->
39443944
<pre class='prod'>
3945-
<dfn>color()</dfn> = color( <<colorspace-params>> [ / <<alpha-value>> ]? )
3945+
<dfn>color()</dfn> = color( <<colorspace-params>> [ / [ <<alpha-value>> | none ] ]? )
39463946
<dfn>&lt;colorspace-params></dfn> = [ <<predefined-rgb-params>> | <<xyz-params>>]
39473947
<dfn>&lt;predefined-rgb-params></dfn> = <<predefined-rgb>> [ <<number>> | <<percentage>> | none ]{3}
39483948
<dfn>&lt;predefined-rgb></dfn> = ''srgb'' | ''srgb-linear'' | ''display-p3'' | ''a98-rgb'' | ''prophoto-rgb'' | ''rec2020''
@@ -5809,13 +5809,13 @@ Appendix A: Deprecated CSS System Colors</h2>
58095809
</wpt>
58105810

58115811
<!--
5812-
███████ ██ ██ ████ ████████ ██ ██ ██████
5812+
███████ ██ ██ ████ ████████ ██ ██ ██████
58135813
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5814-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5815-
██ ██ ██ ██ ██ ████████ █████ ██████
5814+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5815+
██ ██ ██ ██ ██ ████████ █████ ██████
58165816
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
58175817
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5818-
█████ ██ ███████ ████ ██ ██ ██ ██ ██████
5818+
█████ ██ ███████ ████ ██ ██ ██ ██ ██████
58195819
-->
58205820

58215821
<h2 id='quirky-color' class="no-num">
@@ -5875,11 +5875,11 @@ Appendix B: Deprecated Quirky Hex Colors</h2>
58755875

58765876
<!--
58775877
███ ██████ ██ ██
5878-
██ ██ ██ ██ ██ ██
5879-
██ ██ ██ ██ ██
5880-
██ ██ ██ █████
5881-
█████████ ██ ██ ██
5882-
██ ██ ██ ██ ██ ██
5878+
██ ██ ██ ██ ██ ██
5879+
██ ██ ██ ██ ██
5880+
██ ██ ██ █████
5881+
█████████ ██ ██ ██
5882+
██ ██ ██ ██ ██ ██
58835883
██ ██ ██████ ██ ██
58845884
-->
58855885

@@ -5892,11 +5892,11 @@ Emilio Cobos Álvarez, Chris Bai, Amelia Bellamy-Royds, Lars Borg, Mike Bremford
58925892

58935893
<!--
58945894
██ ██ ████████ ████████ ██ ██ ████ ████████ ████████
5895-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5896-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5897-
██ ██ ██ ████████ ██ █████████ ██ ██ ██ ██████
5898-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5899-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5895+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5896+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5897+
██ ██ ██ ████████ ██ █████████ ██ ██ ██ ██████
5898+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
5899+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
59005900
███ ███ ██ ██ ██ ██ ████ ████████ ████████
59015901
-->
59025902

@@ -6346,12 +6346,12 @@ Changes from Colors 3</h3>
63466346

63476347
<!--
63486348
██████ ████████ ██████ ██ ██ ████████ ████ ████████ ██ ██
6349-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6350-
██ ██ ██ ██ ██ ██ ██ ██ ██ ████
6351-
██████ ██████ ██ ██ ██ ████████ ██ ██ ██
6352-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6353-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6354-
██████ ████████ ██████ ███████ ██ ██ ████ ██ ██
6349+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6350+
██ ██ ██ ██ ██ ██ ██ ██ ██ ████
6351+
██████ ██████ ██ ██ ██ ████████ ██ ██ ██
6352+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6353+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6354+
██████ ████████ ██████ ███████ ██ ██ ████ ██ ██
63556355
-->
63566356

63576357
Security Considerations {#security}
@@ -6367,12 +6367,12 @@ this risk is believed to be mitigated.
63676367

63686368
<!--
63696369
████████ ████████ ████ ██ ██ ███ ██████ ██ ██
6370-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6371-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████
6372-
████████ ████████ ██ ██ ██ ██ ██ ██ ██
6373-
██ ██ ██ ██ ██ ██ █████████ ██ ██
6374-
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6375-
██ ██ ██ ████ ███ ██ ██ ██████ ██
6370+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6371+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ████
6372+
████████ ████████ ██ ██ ██ ██ ██ ██ ██
6373+
██ ██ ██ ██ ██ ██ █████████ ██ ██
6374+
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
6375+
██ ██ ██ ████ ███ ██ ██ ██████ ██
63766376
-->
63776377

63786378
Privacy Considerations {#privacy}
@@ -6384,12 +6384,12 @@ which is a fingerprinting risk.
63846384

63856385
<!--
63866386
███ ██ ██ ██ ██
6387-
██ ██ ████ ████ ██ ██
6388-
██ ██ ██ ██ ████
6389-
██ ██ ██ ██ ██
6390-
█████████ ██ ██ ██
6391-
██ ██ ██ ██ ██
6392-
██ ██ ██████ ██████ ██
6387+
██ ██ ████ ████ ██ ██
6388+
██ ██ ██ ██ ████
6389+
██ ██ ██ ██ ██
6390+
█████████ ██ ██ ██
6391+
██ ██ ██ ██ ██
6392+
██ ██ ██████ ██████ ██
63936393
-->
63946394

63956395

css-color-5/Overview.bs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ spec:css-color-3
2525
</pre>
2626

2727
<pre class="link-defaults">
28-
spec:css-color-4; type:dfn; text:color
2928
spec:css-color-4; type:dfn; text:color space
3029
spec:css-color-4; type:dfn; text:gamut
3130
spec:css-color-4; type:dfn; text:rectangular orthogonal color
@@ -1226,7 +1225,7 @@ by reducing OKLCH Chroma, yeilds
12261225
The OKLCH chroma has dropped from 0.251 to 0.117.
12271226
</div>
12281227

1229-
1228+
<!-- Big Text: color() -->
12301229

12311230
<h2 id="color-function">Specifying custom color spaces: the ''color()'' function</h2>
12321231

@@ -1243,7 +1242,7 @@ The OKLCH chroma has dropped from 0.251 to 0.117.
12431242
Its syntax is extended as follows:
12441243

12451244
<pre class='prod'>
1246-
<dfn>color()</dfn> = color( [from <<color>>]? <<colorspace-params>> [ / <<alpha-value>> ]? )
1245+
<dfn>color()</dfn> = color( [from <<color>>]? <<colorspace-params>> [ / [ <<alpha-value>> | none ] ]? )
12471246
<dfn>colorspace-params</dfn> = [<<custom-params>> | <<predefined-rgb-params>> | <<xyz-params>>]
12481247
<dfn>custom-params</dfn> = <<dashed-ident>> [ <<number>> | <<percentage>> | none ]#
12491248
<dfn>predefined-rgb-params</dfn> = <<predefined-rgb>> [ <<number>> | <<percentage>> | none ]{3}

0 commit comments

Comments
 (0)