Skip to content

Commit fd1064e

Browse files
committed
[css-color-5] Actually allow percentages for adjusters
Per previous grammar, they were basically argument-less keywords
1 parent 3a6af41 commit fd1064e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

css-color-5/Overview.bs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,10 @@ Mixing colors: the ''color-mix()'' function {#color-mix}
100100
</pre>
101101

102102
<pre class='prod'>
103-
<dfn>&lt;color-adjuster></dfn> = [
103+
<dfn>&lt;color-adjuster></dfn> = [ [
104104
<<srgb-adjuster>> | <<hsl-adjuster>> | <<hwb-adjuster>>
105105
| <<xyz-adjuster>> | <<lab-adjuster>> | <<lch-adjuster>>
106-
] || alpha
106+
] | alpha ] <<percentage>>?
107107
<dfn>&lt;srgb-adjuster></dfn> = red || green || blue
108108
<dfn>&lt;hsl-adjuster></dfn> = <<hue-adjuster>> || saturation || lightness
109109
<dfn>&lt;hwb-adjuster></dfn> = <<hue-adjuster>> || whiteness || blackness
@@ -133,9 +133,9 @@ lightness means the LCH Lightness, which is the same as Lab lightness,
133133
but different to the HSL Lightness.
134134

135135
Only the [=color-adjuster=]s defined for a given [=colorspace=] are available.
136-
The alpha adjuster is available regardless of color space.
137136
For example,
138137
it is not possible to use the HWB [=whiteness=] adjuster unless the colorspace is [=hwb=].
138+
The alpha adjuster is available on any color space.
139139

140140
If the specified colorspace has a smaller gamut
141141
than the one in which the color to be adjusted is specified,

0 commit comments

Comments
 (0)