Skip to content

Commit 98260f1

Browse files
committed
[css-color-4] greater clarity on non-existence
1 parent 4c111a3 commit 98260f1

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

css-color-4/Overview.bs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2300,7 +2300,7 @@ Profiled, Device-dependent Colors</h2>
23002300

23012301
The ''color()'' function allows a color to be specified
23022302
in a particular [=colorspace=]
2303-
(rather than the implicit sRGB colorspace that the other color functions operate in).
2303+
(rather than the implicit sRGB colorspace that most of the other color functions operate in).
23042304
Its syntax is:
23052305

23062306
<pre class='prod'>
@@ -2315,15 +2315,24 @@ Profiled, Device-dependent Colors</h2>
23152315
Each argument has the following form:
23162316

23172317
* An optional <<ident>> or <<dashed-ident>> denoting the colorspace.
2318-
If this is an <<ident>> it denotes one of the predefined colorspaces
2318+
If this is an <<ident>> it denotes one of the <a href="#predefined">predefined colorspaces</a>
23192319
(such as ''display-p3'');
23202320
if it is a <<dashed-ident>> it denotes a custom
23212321
colorspace, defined by a ''@color-profile'' rule.
23222322
If omitted, it defaults to the predefined ''srgb'' color profile.
23232323

2324-
If the <<ident>> or <<dashed-ident>> names a non-existent colorspace,
2324+
If the <<ident>> names a non-existent colorspace
2325+
(a name that does not match one of the <a href="#predefined">predefined colorspaces</a>),
2326+
or a predefined but unsupprted colorspace,
23252327
this argument represents an <a>invalid color</a>.
23262328

2329+
If the <<dashed-ident>> names a non-existent colorspace
2330+
( a name that does not match an <a>color profile's</a> name,
2331+
or which matches but the corresponding profile has not loaded,
2332+
or does not represent a valid profile),
2333+
this argument represents an <a>invalid color</a>.
2334+
2335+
23272336
* Either one or more <<number>>s or <<percentage>>s providing the parameter values that the colorspace takes,
23282337
or a <<string>> giving the name of a color defined by the colorspace.
23292338

0 commit comments

Comments
 (0)