You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4 and 8 digits <a>hex colors</a> with an explicitly opaque alpha channel,
215
215
comma separated ''rgb()'' colors without an alpha channel,
@@ -704,6 +704,57 @@ Named Colors</h2>
704
704
Note: this list of colors and their definitions is a superset of the list of <a href="https://www.w3.org/TR/SVG/types.html#ColorKeywords">named colors defined by SVG 1.1</a>.
705
705
For historical reasons, this is also referred to as the X11 color set.
706
706
707
+
708
+
<h3 id="css-system-colors">
709
+
CSS System Colors</h3>
710
+
711
+
In addition to being able to assign color keyword values to text, backgrounds, etc.,
712
+
CSS defines a set of <dfn id="system-color" lt="system colors" export><system color></dfn> values,
713
+
to allow authors to specify colors in a manner that integrate them into the user's graphic environment.
714
+
715
+
<<system-color>>s incur some privacy and security risk, as detailed in [[#priv-sec]].
716
+
717
+
For systems that do not have a corresponding value,
718
+
the specified value should be mapped to the nearest system color value,
719
+
or to a default color.
720
+
Note that some profiles of CSS may not support System Colors at all.
721
+
722
+
The following lists the additional values for color-related CSS values and their general meaning.
723
+
Any color property can take one of the following names.
724
+
These names are case-insensitive and shown here with mixed capitalization for legibility.
<dd>Background of application content or documents.
735
+
<dt><dfn>Field</dfn>
736
+
<dd>Background of input fields.
737
+
<dt><dfn>FieldText</dfn>
738
+
<dd>Text in input fields.
739
+
<dt><dfn>GrayText</dfn>
740
+
<dd>Grayed (disabled) text. This color is set to #000 if the current display driver does not support a solid gray color.
741
+
<dt><dfn>Highlight</dfn>
742
+
<dd>Background of item(s) selected in a control.
743
+
<dt><dfn>HighlightText</dfn>
744
+
<dd>Text of item(s) selected in a control.
745
+
<dt><dfn>LinkText</dfn>
746
+
<dd>Text in non-active, non-visited links.
747
+
<dt><dfn>Text</dfn>
748
+
<dd>Text in application content or documents.
749
+
<dt><dfn>VisitedText</dfn>
750
+
<dd>Text in visited links.
751
+
</dl>
752
+
753
+
Earlier versions of CSS defined additional <<system color>>s,
754
+
which have since been deprecated.
755
+
These are documented in [[#deprecated-system-colors]].
756
+
757
+
707
758
<h3 id='transparent-color'>
708
759
The ''transparent'' keyword</h3>
709
760
@@ -2332,6 +2383,7 @@ Converting Between Uncalibrated CMYK and RGB-Based Colors</h3>
2332
2383
<li>fallback color must be set to the input color
2333
2384
</ul>
2334
2385
2386
+
2335
2387
<h2 id="transparency">
2336
2388
Transparency: the 'opacity' property</h2>
2337
2389
@@ -2759,12 +2811,10 @@ Default Style Rules</h2>
2759
2811
2760
2812
</pre>
2761
2813
2762
-
<h2 id="system-colors" class="no-num">
2814
+
<h2 id="deprecated-system-colors" class="no-num">
2763
2815
Appendix A: Deprecated CSS System Colors</h2>
2764
2816
2765
-
Earlier versions of CSS defined several additional named color keywords,
2766
-
the <dfn><deprecated-system-color></dfn>s,
2767
-
which were meant to take their value from operating system themes.
2817
+
Earlier versions of CSS defined several additional <<system-color>>s.
2768
2818
These color names have been <strong>deprecated</strong>, however,
2769
2819
as they are insufficient for their original purpose
2770
2820
(making website elements look like their native OS counterparts),
@@ -2790,10 +2840,6 @@ Appendix A: Deprecated CSS System Colors</h2>
2790
2840
<dt><dfn>Background</dfn>
2791
2841
<dd>Desktop background.
2792
2842
2793
-
<dt><dfn>ButtonFace</dfn>
2794
-
<dd>The face background color for 3-D elements that appear 3-D due to
2795
-
one layer of surrounding border.
2796
-
2797
2843
<dt><dfn>ButtonHighlight</dfn>
2798
2844
<dd>The color of the border facing the light source for 3-D elements
2799
2845
that appear 3-D due to one layer of surrounding border.
@@ -2802,22 +2848,9 @@ Appendix A: Deprecated CSS System Colors</h2>
2802
2848
<dd>The color of the border away from the light source for 3-D elements
2803
2849
that appear 3-D due to one layer of surrounding border.
2804
2850
2805
-
<dt><dfn>ButtonText</dfn>
2806
-
<dd>Text on push buttons.
2807
-
2808
2851
<dt><dfn>CaptionText</dfn>
2809
2852
<dd>Text in caption, size box, and scrollbar arrow box.
2810
2853
2811
-
<dt><dfn>GrayText</dfn>
2812
-
<dd>Grayed (disabled) text. This color is set to #000 if
2813
-
the current display driver does not support a solid gray color.
2814
-
2815
-
<dt><dfn>Highlight</dfn>
2816
-
<dd>Item(s) selected in a control.
2817
-
2818
-
<dt><dfn>HighlightText</dfn>
2819
-
<dd>Text of item(s) selected in a control.
2820
-
2821
2854
<dt><dfn>InactiveBorder</dfn>
2822
2855
<dd>Inactive window border.
2823
2856
@@ -2891,6 +2924,7 @@ Changes</h2>
2891
2924
<h3 id="changes-from-20160705" class='no-num'>Changes since <a href="http://www.w3.org/TR/2016/WD-css-color-4-20160705/">Working Draft of 05 July 2016</a></h3>
2892
2925
2893
2926
<ul>
2927
+
<li>Add new list of CSS system colors</li>
2894
2928
<li>Initial value of the "color" property is now black</li>
2895
2929
<li>Clarify hue in LCH is modulo 360deg</li>
2896
2930
<li>Clarify allowed range of L in LCH and Lab, and meaning of L=100</li>
@@ -2968,13 +3002,9 @@ Security and Privacy Considerations {#priv-sec}
2968
3002
This specification defines "system" colors,
2969
3003
which theoretically can expose details of the user's OS settings,
2970
3004
which is a fingerprinting risk.
2971
-
However, these values are now defined to be settings-neutral,
2972
-
and should be implemented in a generic way that does not actually expose system colors.
2973
3005
2974
3006
The system colors,
2975
3007
if they actually correspond to the user's system colors,
2976
3008
also pose a security risk,
2977
3009
as they make it easier for a malware site
2978
-
to create a dialog that appears to be a system dialog.
0 commit comments