@@ -1788,51 +1788,70 @@ Profiled, Device-dependent Colors</h2>
17881788 identical to ''rgb(0 0 0)'' .
17891789
17901790<h3 id="predefined">
1791- Predefined colorspaces: ''dci-p3'' and ''rec2020''.</h3>
1791+ Predefined colorspaces: ''srgb'', '' dci-p3'', and ''rec2020''.</h3>
17921792
1793- These two colorspaces are indicated by using the predefined identifiers
1794- ''dci-p3'' or ''rec2020'' in the color function.
1795- No ''@color-profile'' at-rule is needed for these predefined names;
1796- if one is supplied, it will be ignored.
1793+ The following colorspaces are predefined for use in the ''color()'' function.
1794+ They can be used without any ''@color-profile'' rule.
17971795
17981796 Issue: Decided at San Francisco to add a larger set of common predefined spaces
17991797 like AdobeRGB, ProPhoto RGB, and so on. Also coated and uncoated swop, etc, etc.
18001798
1801- The <dfn value for="color()">dci-p3</dfn> [[!DCI-P3]] colorspace has the following characteristics:
1802-
1803- <table>
1804- <tr><th> Red chromaticity</th><td> x=0.680 y=0.320</td></tr>
1805- <tr><th> Green chromaticity</th><td> x=0.265 y=0.690</td></tr>
1806- <tr><th> Blue chromaticity</th><td> x=0.150 y=0.060</td></tr>
1807- <tr><th> White chromaticity</th><td> x=0.3127 y=0.3290 (D65)</td></tr>
1808- <tr><th> Transfer function</th><td> 1/2.6</td></tr>
1809- </table>
1810-
1811- Issue: The defining spec for dci-p3 is not freely available. It costs USD 240.
1812- There is a Wikipedia article, which is non-authoritative and of unknown accuracy
1813- (particularly for the transfer function and viewing conditions).
1814-
1815- Issue: DCI transfer function for P3 is gamma 1/2.6 while Apple P3 displays use gamma 1/2.2.
1816-
1817- The <dfn value for="color()">rec2020</dfn> [[!Rec.2020]] colorspace has the following characteristics:
1818-
1819- <table>
1820- <tr><th> Red chromaticity</th><td> x=0.708 y=0.292</td></tr>
1821- <tr><th> Green chromaticity</th><td> x=0.170 y=0.797</td></tr>
1822- <tr><th> Blue chromaticity</th><td> x=0.131 y=0.046</td></tr>
1823- <tr><th> White chromaticity</th><td> x=0.3127 y=0.3290 (D65)</td></tr>
1824- <tr><th> Transfer function</th><td> see below</td></tr>
1825- </table>
1826-
1827- ''rec2020'' transfer function has the same form as the one for sRGB, but with
1828- the constants at higher precision to cope with 10 or 12-bit components:
1799+ <dl dfn-type=value dfn-for="color()">
1800+ <dt> <dfn>srgb</dfn>
1801+ <dd>
1802+ The ''srgb'' [[!DCI-P3]] colorspace accepts three numeric parameters,
1803+ representing the red, green, and blue channels of the color,
1804+ with each having a valid range of [0, 1] .
18291805
1830- <pre class="lang-javascript">
1831- E < β ? 4.5 * E : α * Math.pow(E, 0.45) - (α - 1);
1832- </pre>
1806+ It is the default colorspace for CSS,
1807+ identical to specifying a color with the ''rgb()'' function.
18331808
1834- Where α=1.09929682680944 and β=0.018053968510807
1835- <!-- full-precision constants here, not the rounded ones for 10 or 12bit components -->.
1809+ <dt> <dfn>dci-p3</dfn>
1810+ <dd>
1811+ The ''dci-p3'' [[!DCI-P3]] colorspace accepts three numeric parameters,
1812+ representing the red, green, and blue channels of the color,
1813+ with each having a valid range of [0, 1] .
1814+
1815+ It has the following characteristics:
1816+
1817+ <table>
1818+ <tr><th> Red chromaticity</th><td> x=0.680 y=0.320</td></tr>
1819+ <tr><th> Green chromaticity</th><td> x=0.265 y=0.690</td></tr>
1820+ <tr><th> Blue chromaticity</th><td> x=0.150 y=0.060</td></tr>
1821+ <tr><th> White chromaticity</th><td> x=0.3127 y=0.3290 (D65)</td></tr>
1822+ <tr><th> Transfer function</th><td> 1/2.6</td></tr>
1823+ </table>
1824+
1825+ Issue: The defining spec for dci-p3 is not freely available. It costs USD 240.
1826+ There is a Wikipedia article, which is non-authoritative and of unknown accuracy
1827+ (particularly for the transfer function and viewing conditions).
1828+
1829+ Issue: DCI transfer function for P3 is gamma 1/2.6 while Apple P3 displays use gamma 1/2.2.
1830+
1831+ <dt> <dfn>rec2020</dfn>
1832+ The ''rec2020'' [[!Rec.2020]] colorspace accepts three numeric parameters,
1833+ representing the red, green, and blue channels of the color,
1834+ with each having a valid range of [0, 1] .
1835+
1836+ It has the following characteristics:
1837+
1838+ <table>
1839+ <tr><th> Red chromaticity</th><td> x=0.708 y=0.292</td></tr>
1840+ <tr><th> Green chromaticity</th><td> x=0.170 y=0.797</td></tr>
1841+ <tr><th> Blue chromaticity</th><td> x=0.131 y=0.046</td></tr>
1842+ <tr><th> White chromaticity</th><td> x=0.3127 y=0.3290 (D65)</td></tr>
1843+ <tr><th> Transfer function</th><td> see below</td></tr>
1844+ </table>
1845+
1846+ ''rec2020'' transfer function has the same form as the one for sRGB, but with
1847+ the constants at higher precision to cope with 10 or 12-bit components:
1848+
1849+ <pre class="lang-javascript">
1850+ E < β ? 4.5 * E : α * Math.pow(E, 0.45) - (α - 1);
1851+ </pre>
1852+
1853+ Where α=1.09929682680944 and β=0.018053968510807
1854+ <!-- full-precision constants here, not the rounded ones for 10 or 12bit components -->.
18361855
18371856<h4 id="predefined-to-lab">
18381857Converting predefined colorspaces to Lab</h4>
0 commit comments