Skip to content

Commit 9f2d0dc

Browse files
committed
[css-color-5] RCS color() was missing alpha channel keyword
1 parent 55979a6 commit 9f2d0dc

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

css-color-5/Overview.bs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,14 @@ the allowed [=channel keywords=] are:
15501550
after <a href="#required-conversion">conversion, if required</a> to relative CIE XYZ color space
15511551
adapted to the relevant white point.
15521552

1553-
The parameters have the following form:
1553+
Within a [=relative color=] syntax ''color()'' function
1554+
using either <<predefined-rgb-params>> or
1555+
<<xyz-params>>, an additional allowed [=channel keyword=] is:
1556+
1557+
* <dfn value for="color()">alpha</dfn> is a <<number>> that corresponds to the
1558+
[=origin color's=] alpha transparency. 1.0 is equivalent to 100%.
1559+
1560+
The parameters have the following form:
15541561

15551562
* An <<ident>> or <<dashed-ident>> denoting the color space.
15561563
If this is an <<ident>> it denotes one of the
@@ -1610,17 +1617,16 @@ the allowed [=channel keywords=] are:
16101617
are gamut mapped to the valid range at computed value time,
16111618
with a relative colorimetric intent.
16121619

1613-
* An optional slash-separated <<alpha-value>>.
1614-
This is interpreted the same way as the <<alpha-value>> in ''rgb()'',
1615-
and if omitted it defaults to ''100%''.
1620+
* An optional slash-separated <<alpha-value>>.If omitted, it defaults to ''100%''.
16161621

16171622
<wpt>
16181623
parsing/color-computed-relative-color.html
16191624
</wpt>
16201625

16211626
<div class="example" id="ex-RCS-XYZ">
16221627
For example, Relative Color Syntax in the CIE XYZ D65 colorspace
1623-
is used to generate a color which has exactly half the luminance
1628+
is used to generate a color which has
1629+
the same chromaticity but exactly half the luminance
16241630
of the base color:
16251631

16261632
<pre class="lang-css">

0 commit comments

Comments
 (0)