@@ -2812,7 +2812,7 @@ Device-independent Colors: Lab and LCH</h2>
28122812 For example, in HSL, the sRGB colors blue (#00F) and yellow (#FF0)
28132813 have the same value of L (50%) even though visually, blue is much darker.
28142814 This is much clearer in Lab:
2815- sRGB blue is lab(29.567% 68.298, -112.0294)
2815+ sRGB blue is lab(29.567% 68.298 -112.0294)
28162816 while
28172817 sRGB yellow is lab(97.607% -15.753 93.388).
28182818 In Lab and LCH, if two colors have the same measured L value,
@@ -2880,7 +2880,7 @@ Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
28802880 <pre class="lang-css">
28812881 <span class="swatch" style="--color: rgb(49.06% 13.87% 15.9%)"></span> lab(29.2345% 39.3825 20.0664);
28822882 <span class="swatch" style="--color: rgb(77.61% 36.34% 2.45%)"></span> lab(52.2345% 40.1645 59.9971);
2883- <span class="swatch" style="--color: rgb(61.65% 57.51% 9.28%)"></span> lab(60.2345, -5.3654 58.956);
2883+ <span class="swatch" style="--color: rgb(61.65% 57.51% 9.28%)"></span> lab(60.2345% -5.3654 58.956);
28842884 <span class="swatch" style="--color: rgb(40.73% 65.12% 22.35%)"></span> lab(62.2345% -34.9638 47.7721);
28852885 <span class="swatch" style="--color: rgb(38.29% 67.27% 93.85%)"></span> lab(67.5345% -8.6911 -41.6019);
28862886 </pre>
@@ -3217,7 +3217,7 @@ Profiled, Device-dependent Colors</h2>
32173217 This very intense lime color is in-gamut for rec.2020:
32183218 <pre class="lang-css"> color(rec2020 0.42053 0.979780 0.00579);</pre>
32193219 in LCH, that color is
3220- <pre class="lang-css"> lch(86.6146 160.0000, 136.0088);</pre>
3220+ <pre class="lang-css"> lch(86.6146% 160.0000 136.0088);</pre>
32213221 in display-p3, that color is
32223222 <pre class="lang-css"> color(display-p3 -0.6112 1.0079 -0.2192);</pre>
32233223 and is out of gamut for display-p3
@@ -3557,7 +3557,7 @@ Predefined colorspaces: ''srgb'', ''display-p3'', ''a98-rgb'', ''prophoto-rgb'',
35573557 <pre class="lang-css">
35583558 <span class="swatch" style="--color: #7654CD"></span> #7654CD;
35593559 <span class="swatch" style="--color: #7654CD"></span> rgb(46.27% 32.94% 80.39%)
3560- <span class="swatch" style="--color: #7654CD"></span> color(lab 44.36 36.05 -58.99)
3560+ <span class="swatch" style="--color: #7654CD"></span> color(lab 44.36% 36.05 -58.99)
35613561 <span class="swatch" style="--color: #7654CD"></span> color(xyz 0.2005, 0.14089, 0.4472)
35623562 </div>
35633563
@@ -3795,7 +3795,7 @@ you will use.
37953795 of cyan, magenta, yellow, and black.
37963796
37973797 In this profile, this resolves to the color
3798- <span class="swatch" style="--color: rgb(93.124% 44.098% 57.491%)"></span> Lab (63.673303% 51.576902 5.811058)
3798+ <span class="swatch" style="--color: rgb(93.124% 44.098% 57.491%)"></span> lab (63.673303% 51.576902 5.811058)
37993799 which is
38003800 <span class="swatch" style="--color: rgb(93.124% 44.098% 57.491%)"></span> rgb(93.124, 44.098% 57.491%).
38013801</div>
@@ -3886,7 +3886,7 @@ can proceed as normal.
38863886 In this profile, this amount of CMYK
38873887 (the same percentages as the previous example)
38883888 resolves to the color
3889- <span class="swatch" style="--color: rgb(94.903% 45.248% 59.104%)"></span> Lab (64.965217% 52.119710 5.406966)
3889+ <span class="swatch" style="--color: rgb(94.903% 45.248% 59.104%)"></span> lab (64.965217% 52.119710 5.406966)
38903890 which is
38913891 <span class="swatch" style="--color: rgb(94.903% 45.248% 59.104%)"></span> rgb(94.903% 45.248% 59.104%).
38923892</div>
@@ -3925,14 +3925,14 @@ to be outside the sRGB gamut.
39253925
39263926 This example does not use illustrative swatches, because most of the colors are outside of sRGB.
39273927
3928- This CMYK color corresponds to Lab (56.596645% -58.995875 28.072154)
3929- or LCH (56.596645% 65.33421077211648, 154.5533771086801).
3928+ This CMYK color corresponds to lab (56.596645% -58.995875 28.072154)
3929+ or lch (56.596645% 65.33421077211648 154.5533771086801).
39303930 In sRGB this would be rgb(-60.568% 62.558% 32.390%) which,
39313931 as the large negative red component shows,
39323932 is out of gamut.
39333933
39343934 Reducing the chroma until the result is in gamut
3935- gives LCH (56.596645% 51 154.5533771086801)
3935+ gives lch (56.596645% 51 154.5533771086801)
39363936 which is rgb(8.154% 60.9704% 37.184%)
39373937 and this is used as the fallback color.
39383938
0 commit comments