Skip to content

Commit 8667845

Browse files
committed
[css-color-4] Three-stage process for color function. Fix w3c#5046
1 parent 1e7d5e5 commit 8667845

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

css-color-4/Overview.bs

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,12 +3212,23 @@ Profiled, Device-dependent Colors</h2>
32123212
an [=out of gamut=] color
32133213
<dfn export>can't be displayed</dfn>.
32143214

3215-
The ''color()'' function represents the color
3216-
specified by the first of its arguments that <dfn export>can be displayed</dfn>,
3215+
The first choice for the value of the ''color()'' function
3216+
is that it represents the color
3217+
specified by the first of its arguments that
3218+
<dfn export>can be displayed</dfn>,
32173219
(that is, the first argument that isn't an [=invalid color=]
32183220
and isn't [=out of gamut=]).
3221+
32193222
If all of its arguments [=can't be displayed=]],
3220-
''color()'' represents <a>opaque black</a>.
3223+
second choice for the value of the ''color()'' function
3224+
is that it represents the color
3225+
specified by the first of its arguments that represent
3226+
a [=valid color=], which will then be
3227+
<a>gamut-mapped</a> for display.
3228+
3229+
If all of its arguments are [=invalid color=]s,
3230+
the third choice for the value of the ''color()'' function
3231+
is that it represents <a>opaque black</a>.
32213232

32223233

32233234
<div class="example" id="ex-2020-oog-p3">

0 commit comments

Comments
 (0)