Skip to content

Commit a84b5c0

Browse files
committed
css-color-5 Remove copy of text (from Color 4) from RCS color() #8841
1 parent 78f9b90 commit a84b5c0

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

css-color-5/Overview.bs

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1603,53 +1603,6 @@ the allowed [=channel keywords=] are:
16031603
parsing/color-computed-relative-color.html
16041604
</wpt>
16051605

1606-
A color which is either an [=invalid color=] or
1607-
an [=out of gamut=] color
1608-
<dfn export>can't be displayed</dfn>.
1609-
1610-
If the specified color <dfn export>can be displayed</dfn>,
1611-
(that is, it isn't an [=invalid color=]
1612-
and isn't [=out of gamut=])
1613-
then this is the used value of the ''color()'' function.
1614-
1615-
If the specified color
1616-
is a [=valid color=]
1617-
but [=can't be displayed=],
1618-
the used value is derived from the specified color,
1619-
<a>gamut-mapped</a> for display.
1620-
1621-
If the color is an [=invalid color=],
1622-
the used value is <a>opaque black</a>.
1623-
1624-
1625-
<div class="example" id="ex-2020-oog-p3">
1626-
This very intense lime color is in-gamut for rec.2020:
1627-
<pre class="lang-css">color(rec2020 0.42053 0.979780 0.00579);</pre>
1628-
in LCH, that color is
1629-
<pre class="lang-css">lch(86.6146% 160.0000 136.0088);</pre>
1630-
in display-p3, that color is
1631-
<pre class="lang-css">color(display-p3 -0.6112 1.0079 -0.2192);</pre>
1632-
and is out of gamut for display-p3
1633-
(red and blue are negative, green is greater than 1).
1634-
If you have a display-p3 screen, that color is:
1635-
<ul>
1636-
<li><em>valid</em></li>
1637-
<li><em>in gamut</em> (for rec.2020)</li>
1638-
<li><em>out of gamut</em> (for your display)</li>
1639-
<li>and so <em>can't be displayed</em></li>
1640-
</ul>
1641-
The color used for display will be a less intense color
1642-
produced automatically by gamut mapping.
1643-
</div>
1644-
1645-
<div class="invalid example" id="ex-profoto-bad">
1646-
This example has a typo!
1647-
An intense green is provided in profoto-rgb space (which doesn't exist).
1648-
This makes it invalid, so the used value is <a>opaque black</a>
1649-
<pre class="lang-css">color(profoto-rgb 0.4835 0.9167 0.2188)</pre>
1650-
</div>
1651-
1652-
16531606
<h3 id="custom-color">
16541607
Custom Color Spaces
16551608
</h3>

0 commit comments

Comments
 (0)