Skip to content

Commit 37ded35

Browse files
committed
[css-color-5] Add alpha adjuster
1 parent 5916f1d commit 37ded35

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

css-color-5/Overview.bs

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

102102
<pre class='prod'>
103-
<dfn>&lt;color-adjuster></dfn> = <<rgb-adjuster>> | <<hsl-adjuster>> | <<hwb-adjuster>> | <<xyz-adjuster>> | <<lab-adjuster>> | <<lch-adjuster>>
103+
<dfn>&lt;color-adjuster></dfn> = [
104+
<<rgb-adjuster>> | <<hsl-adjuster>> | <<hwb-adjuster>>
105+
| <<xyz-adjuster>> | <<lab-adjuster>> | <<lch-adjuster>>
106+
] || alpha
104107
<dfn>&lt;srgb-adjuster></dfn> = red || green || blue
105108
<dfn>&lt;hsl-adjuster></dfn> = <<hue-adjuster>> || saturation || lightness
106109
<dfn>&lt;hwb-adjuster></dfn> = <<hue-adjuster>> || whiteness || blackness
@@ -130,6 +133,7 @@ lightness means the LCH Lightness, which is the same as Lab lightness,
130133
but different to the HSL Lightness.
131134

132135
Only the [=color-adjuster=]s defined for a given [=colorspace=] are available.
136+
The alpha adjuster is available regardless of color space.
133137
For example,
134138
it is not possible to use the HWB [=whiteness=] adjuster unless the colorspace is [=hwb=].
135139

0 commit comments

Comments
 (0)