Skip to content

Commit ef48401

Browse files
committed
[css-color-4] remove ICC named colors, fix #6095
1 parent b87e765 commit ef48401

File tree

1 file changed

+29
-44
lines changed

1 file changed

+29
-44
lines changed

css-color-4/Overview.bs

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3124,7 +3124,7 @@ Profiled, Device-dependent Colors</h2>
31243124
Its syntax is:
31253125

31263126
<pre class='prod'>
3127-
<dfn>color()</dfn> = color( [ [<<ident>> | <<dashed-ident>>] [ <<number-percentage>>+ | <<string>> ] [ / <<alpha-value>> ]? ]# , <<color>>? )
3127+
<dfn>color()</dfn> = color( [ [<<ident>> | <<dashed-ident>>] [ <<number-percentage>>+ ] [ / <<alpha-value>> ]? ]# , <<color>>? )
31283128
</pre>
31293129

31303130
<wpt>
@@ -3185,49 +3185,34 @@ Profiled, Device-dependent Colors</h2>
31853185
this argument represents an <a>invalid color</a>.
31863186

31873187

3188-
* Either one or more <<number>>s or <<percentage>>s providing the parameter values that the colorspace takes,
3189-
or a <<string>> giving the name of a color defined by the colorspace.
3190-
3191-
<dl class=switch>
3192-
<dt>If the colorspace takes numeric parameters
3193-
<dd>
3194-
3195-
For custom colorspaces,
3196-
specified component values
3197-
less than 0 or 0%, or greater than 1 or 100%
3198-
are not invalid;
3199-
they are clamped to the valid range at computed value time.
3200-
This is because ICC profiles typically do not accept
3201-
out of range input values.
3202-
3203-
For predefined colorspaces,
3204-
specified component values
3205-
less than 0 or 0%, or greater than 1 or 100%
3206-
are not invalid;
3207-
these out of gamut colors
3208-
are gamut mapped to the valid range at computed value time,
3209-
with a relative colorimetric intent.
3210-
3211-
If more <<number>>s or <<percentage>>s are provided than parameters that the colorspace takes,
3212-
the excess <<number>>s at the end are ignored.
3213-
The color is still a [=valid color=].
3214-
3215-
If fewer <<number>>s or <<percentage>>s are provided than parameters that the colorspace takes,
3216-
the missing parameters default to ''0''.
3217-
(This is particularly convenient for multichannel printers
3218-
where the additional inks are spot colors or varnishes
3219-
that most colors on the page won't use.)
3220-
The color is still a [=valid color=].
3221-
3222-
If a <<string>> is provided,
3223-
this argument represents an <a>invalid color</a>.
3224-
<dt>If the colorspace defines named colors
3225-
<dd>
3226-
If <<number>>s or <<percentage>>s are provided,
3227-
or a <<string>> is provided that doesn't match any of the color names
3228-
defined by the colorspace,
3229-
this argument represents an <a>invalid color</a>.
3230-
</dl>
3188+
* One or more <<number>>s or <<percentage>>s providing the parameter values that the colorspace takes.
3189+
3190+
For custom colorspaces,
3191+
specified component values
3192+
less than 0 or 0%, or greater than 1 or 100%
3193+
are not invalid;
3194+
they are clamped to the valid range at computed value time.
3195+
This is because ICC profiles typically do not accept
3196+
out of range input values.
3197+
3198+
For predefined colorspaces,
3199+
specified component values
3200+
less than 0 or 0%, or greater than 1 or 100%
3201+
are not invalid;
3202+
these out of gamut colors
3203+
are gamut mapped to the valid range at computed value time,
3204+
with a relative colorimetric intent.
3205+
3206+
If more <<number>>s or <<percentage>>s are provided than parameters that the colorspace takes,
3207+
the excess <<number>>s at the end are ignored.
3208+
The color is still a [=valid color=].
3209+
3210+
If fewer <<number>>s or <<percentage>>s are provided than parameters that the colorspace takes,
3211+
the missing parameters default to ''0''.
3212+
(This is particularly convenient for multichannel printers
3213+
where the additional inks are spot colors or varnishes
3214+
that most colors on the page won't use.)
3215+
The color is still a [=valid color=].
32313216

32323217
* An optional slash-separated <<alpha-value>>.
32333218
This is interpreted the same way as the <<alpha-value>> in ''rgb()'',

0 commit comments

Comments
 (0)