@@ -212,8 +212,8 @@ For example, to specify lime green:
212
212
213
213
<div class="example">
214
214
<pre class="lang-css">
215
- em { color: lime; } /* color keyword */
216
- em { color: rgb(0 255 0); } /* RGB range 0-255 */
215
+ em { color: lime; } /* color keyword */
216
+ em { color: rgb(0 255 0); } /* RGB range 0-255 */
217
217
em { color: rgb(0% 100% 0%); } /* RGB range 0%-100% */
218
218
</pre>
219
219
</div>
@@ -223,14 +223,14 @@ For example, to specify lime green:
223
223
<dd> The <<color>> type is defined in a later section.
224
224
</dl>
225
225
226
- <p class="note">
227
- Note: In general, this property, including its alpha component, has
228
- no effect on "color glyphs", such as emoji in some fonts, which are
229
- colored by a built-in palette. Some colored fonts are able to refer
230
- to the foreground color, such as palette entry ''0xFFFF'' in COLR
231
- table of OpenType, and ''context-fill'' value in SVG-in-OpenType. In
232
- that case, the foreground color is set by this property, identical
233
- to how ''<color>/currentcolor'' value works.
226
+ <p class="note">
227
+ Note: In general, this property, including its alpha component, has
228
+ no effect on "color glyphs", such as emoji in some fonts, which are
229
+ colored by a built-in palette. Some colored fonts are able to refer
230
+ to the foreground color, such as palette entry ''0xFFFF'' in COLR
231
+ table of OpenType, and ''context-fill'' value in SVG-in-OpenType. In
232
+ that case, the foreground color is set by this property, identical
233
+ to how ''<color>/currentcolor'' value works.
234
234
235
235
<h2 id='color-type'>
236
236
Representing Colors: the <<color>> type</h2>
@@ -256,10 +256,10 @@ Representing Colors: the <<color>> type</h2>
256
256
257
257
<pre class='prod'>
258
258
<color> = <<hex-color>> | <<named-color>> | currentcolor | transparent
259
- <<rgb()>> | <<rgba()>> | <<hsl()>> | <<hsla()>> | <<hwb()>> |
260
- <<lab()>> | <<lch()>> |
261
- <<color()>> | <<device-cmyk()>> |
262
- <<system-color>>
259
+ <<rgb()>> | <<rgba()>> | <<hsl()>> | <<hsla()>> | <<hwb()>> |
260
+ <<lab()>> | <<lch()>> |
261
+ <<color()>> | <<device-cmyk()>> |
262
+ <<system-color>>
263
263
</pre>
264
264
265
265
The <dfn export>color-functions</dfn> are <<rgb()>> , <<rgba()>> ,
@@ -412,7 +412,7 @@ The RGB functions: ''rgb()'' and ''rgba()''</h3>
412
412
413
413
<pre class='prod'>
414
414
<dfn>rgb()</dfn> = rgb( <<percentage>> {3} [ / <<alpha-value>> ]? ) |
415
- rgb( <<number>> {3} [ / <<alpha-value>> ]? )
415
+ rgb( <<number>> {3} [ / <<alpha-value>> ]? )
416
416
<dfn><alpha-value></dfn> = <<number>> | <<percentage>>
417
417
</pre>
418
418
@@ -447,7 +447,7 @@ The RGB functions: ''rgb()'' and ''rgba()''</h3>
447
447
448
448
<pre class='prod'>
449
449
rgb() = rgb( <<percentage>> #{3} , <<alpha-value>> ? ) |
450
- rgb( <<number>> #{3} , <<alpha-value>> ? )
450
+ rgb( <<number>> #{3} , <<alpha-value>> ? )
451
451
</pre>
452
452
453
453
Also for legacy reasons,
@@ -2712,6 +2712,54 @@ Array(3) [ 0.16582655785857967, 0.6147848214649991, 0.3532666045888559 ]
2712
2712
-->
2713
2713
</div>
2714
2714
2715
+ Colors are not restricted to four inks (CMYK). For example, wide-gamut 7 Color ink sets can be used.
2716
+
2717
+ <div class="example"> This example uses the beta FOGRA55 dataset for KCMYOGV seven-color printing.
2718
+ Four of the inks - black, cyan, magenta, and yellow - are the same as,
2719
+ and give the same results as, the FOGRA51 set.
2720
+ The other three inks are:
2721
+ <ul><li> Pantone Orange 021C</li>
2722
+ <li> Pantone Green C</li>
2723
+ <li> Pantone Violet C</li>
2724
+ </ul>
2725
+
2726
+ The measurement condition is M1,
2727
+ which means that optical brighteners in the paper are accounted for
2728
+ and the spectrophotometer has no UV-cut filter.
2729
+
2730
+ <!-- see file Macbeth-7color.txt --->
2731
+
2732
+ <pre>
2733
+ @color-profile --fogra55beta {
2734
+ src: url('https://example.org/2020_13.003_FOGRA55beta_CL_Profile.icc' );
2735
+ }
2736
+ .dark_skin {
2737
+ background-color: <span class="swatch" style="--color: rgb(45.8702% 32.0071% 26.3813%)"></span>
2738
+ color(--fogra55beta 0.183596 0.464444 0.461729 0.612490 0.156903 0.000000 0.000000);
2739
+ }
2740
+ .light_skin {
2741
+ background-color: <span class="swatch" style="--color: rgb(78.0170% 58.1957% 50.7737%)"></span>
2742
+ color(--fogra55beta 0.070804 0.334971 0.321802 0.215606 0.103107 0.000000 0.000000);
2743
+ }
2744
+ .blue_sky {
2745
+ background-color: <span class="swatch" style="--color: rgb(35.8614% 48.0665% 61.6556%)"></span>
2746
+ color(--fogra55beta 0.572088 0.229346 0.081708 0.282044 0.000000 0.000000 0.168260);
2747
+ }
2748
+ .foliage {
2749
+ background-color: <span class="swatch" style="--color: rgb(34.9582% 42.3446% 25.4209%)"></span>
2750
+ color(--fogra55beta 0.314566 0.145687 0.661941 0.582879 0.000000 0.234362 0.000000);
2751
+ }
2752
+ .blue_flower {
2753
+ background-color: <span class="swatch" style="--color: rgb(51.2952% 50.4131% 68.9186%)"></span>
2754
+ color(--fogra55beta 0.375515 0.259934 0.034849 0.107161 0.000000 0.000000 0.308200);
2755
+ }
2756
+ .bluish_green {
2757
+ background-color: <span class="swatch" style="--color: rgb(36.8792% 74.3685% 67.4749%)"></span>
2758
+ color(--fogra55beta 0.397575 0.010047 0.223682 0.031140 0.000000 0.317066 0.000000);
2759
+ }
2760
+ </pre>
2761
+ </div>
2762
+
2715
2763
<h2 id="working-color-space">
2716
2764
Working Color Space</h2>
2717
2765
@@ -2831,7 +2879,7 @@ Converting Between Uncalibrated CMYK and RGB-Based Colors</h3>
2831
2879
Otherwise:
2832
2880
2833
2881
<ul class="lang-javascript">
2834
- <li><code> red = 1 - min(1, cyan * (1 - black) + black)</code>
2882
+ <li><code> red = 1 - min(1, cyan * (1 - black) + black)</code>
2835
2883
<li><code> green = 1 - min(1, magenta * (1 - black) + black)</code>
2836
2884
<li><code> blue = 1 - min(1, yellow * (1 - black) + black)</code>
2837
2885
<li> Alpha is same as for input color.
@@ -2841,7 +2889,7 @@ Converting Between Uncalibrated CMYK and RGB-Based Colors</h3>
2841
2889
2842
2890
<ul class="lang-javascript">
2843
2891
<li><code> black = 1 - max(red, green, blue)</code>
2844
- <li><code> cyan = (1 - red - black) / (1 - black), or 0 if black is 1</code>
2892
+ <li><code> cyan = (1 - red - black) / (1 - black), or 0 if black is 1</code>
2845
2893
<li><code> magenta = (1 - green - black) / (1 - black), or 0 if black is 1</code>
2846
2894
<li><code> yellow = (1 - blue - black) / (1 - black), or 0 if black is 1</code>
2847
2895
<li> alpha is the same as the input color
@@ -2921,7 +2969,7 @@ Default Style Rules</h2>
2921
2969
}
2922
2970
2923
2971
/* traditional desktop user agent colors for hyperlinks */
2924
- :link { color: blue; }
2972
+ :link { color: blue; }
2925
2973
:visited { color: purple; }
2926
2974
</pre>
2927
2975
0 commit comments