Skip to content

Commit 9ef36d7

Browse files
committed
color function
1 parent 00b3958 commit 9ef36d7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

css-color/Overview.bs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,10 +1690,24 @@ gamut space capable of representing almost all visible real-world colors. Both a
16901690
src: url('http://example.org/indigo-seven.icc'');}
16911691
profile prophoto {
16921692
src: url('http://example.org/prophoto.icc'');}
1693+
</pre>
16931694
</div>
16941695

16951696
<h3 id="color-function">Specifying profiled colors: the ''color()'' function</h3>
16961697

1698+
The color function takes an indentifier as the first parameter, followed by as many
1699+
numerical parameters as are needed (three for an RGB colorspace, four for CMYK,
1700+
one for greyscale). The identifier is either one of the predefined spaces
1701+
(''P3'' or ''Rec2020'') or the name of a profile.
1702+
1703+
<pre class='prod'>
1704+
<dfn>color()</dfn> = color( <<ident>> , <<number>>+ )
1705+
</pre>
1706+
1707+
<p class="issue">How to handle cases where there are too many, or too few, numbers supplied?
1708+
Seems like ignoring extra numbers, and treating unspecified numbers ar zero, would be
1709+
the most robust?</p>
1710+
16971711
<h3 id="predefined">Predefined colorspaces: DCI P3 and Rec.2020.</h3>
16981712

16991713
<h3 id="at-profile">Specifying a color profile: the ''profile'' at-rule</h3>

0 commit comments

Comments
 (0)