@@ -6731,34 +6731,63 @@ Resolving values of the ''color()'' function</h3>
67316731 * [=system colors=] ,
67326732 * <a href="#deprecated-system-colors">deprecated system colors</a>
67336733 * ''transparent''
6734- * ''color>/ currentcolor'' .
6734+ * ''currentcolor'' .
67356735
67366736 If the color was explicitly specified by the author
67376737 as a [=system color=]
6738- or deprecated system color,
6738+ or as a deprecated system color,
67396739 the [=declared value=] is itself, converted to
67406740 <a href="https://infra.spec.whatwg.org/#ascii-lowercase">ASCII lowercase</a> .
67416741
6742- The computed and used value
6743- is the corresponding color in its color space.
6742+ <div class="example" id="ex-system-declared">
6743+ For example, in this html:
6744+
6745+ <pre class="lang-html"> <mark style="color: <span class="swatch" style="--color: MarkText"></span> MarkText; background: <span class="swatch" style="--color: Mark"></span> Mark">example</mark></pre>
6746+
6747+ The declared value for background-color is "mark".
6748+ </div>
6749+
6750+ For [=system colors=] , the computed and used value
6751+ is the corresponding color in its color space,
67446752 paired with the specified alpha component
67456753 (after clamping to [0, 1] ).
67466754
6747- However, system colors and deprecated system colors
6748- must not be altered by
6749- [=forced colors mode=] .
6755+ For <a href="#deprecated-system-colors">deprecated system colors</a> ,
6756+ the computed and used value
6757+ is the color
6758+ of the corresponding [=system color=]
6759+ (as listed in [[#deprecated-system-colors]] )
6760+ in its color space,
6761+ paired with the specified alpha component
6762+ (after clamping to [0, 1] ).
67506763
6764+ <div class="example" id="ex-deprecated-computed">
6765+ For example, given this css:
6766+
6767+ <pre class="lang-css"> .foo {
6768+ color: <span class="swatch" style="--color: InfoText"></span> InfoText;
6769+ }</pre>
6770+
6771+ The corresponding system color for ''InfoText'' is ''CanvasText'' .
6772+ Suppose that ''CanvasText'' is #333;
6773+ then the computed value for ''InfoText'' will also be #333;
6774+
6775+ </div>
67516776
67526777 <div class="example" id="ex-system-resolve">
67536778 For example, in this html:
67546779
67556780 <pre class="lang-html"> <button style="color: <span class="swatch" style="--color: ButtonText"></span> ButtonText; background: <span class="swatch" style="--color: ButtonFace"></span> ButtonFace"></button></pre>
67566781
6757- The declared value of the color property is "ButtonText "
6782+ The declared value of the color property is "buttontext "
67586783 while the computed value could be, for example,
6759- <span class="swatch" style="--color: #FFF "></span> rgb(0, 0, 0).
6784+ <span class="swatch" style="--color: #000 "></span> rgb(0, 0, 0).
67606785 </div>
67616786
6787+ However, system colors and deprecated system colors
6788+ must not be altered by
6789+ [=forced colors mode=] .
6790+
67626791 The declared value of ''transparent'' is "transparent"
67636792 while the computed and used value is [=transparent black=] .
67646793
@@ -7906,84 +7935,84 @@ Appendix A: Deprecated CSS System Colors</h2>
79067935
79077936 <dl dfn-type="value" dfn-for="<color> , <deprecated-color> ">
79087937 <dt> <dfn>ActiveBorder</dfn>
7909- <dd> Active window border. Same as ''ButtonBorder'' .
7938+ <dd> Active window border. Computes to the color of ''ButtonBorder'' .
79107939
79117940 <dt> <dfn>ActiveCaption</dfn>
7912- <dd> Active window caption. Same as ''Canvas'' .
7941+ <dd> Active window caption. Computes to the color of ''Canvas'' .
79137942
79147943 <dt> <dfn>AppWorkspace</dfn>
7915- <dd> Background color of multiple document interface. Same as ''Canvas'' .
7944+ <dd> Background color of multiple document interface. Computes to the color of ''Canvas'' .
79167945
79177946 <dt> <dfn>Background</dfn>
7918- <dd> Desktop background. Same as ''Canvas'' .
7947+ <dd> Desktop background. Computes to the color of ''Canvas'' .
79197948
79207949 <dt> <dfn>ButtonHighlight</dfn>
79217950 <dd> The color of the border facing the light source for 3-D elements
7922- that appear 3-D due to one layer of surrounding border. Same as ''ButtonFace'' .
7951+ that appear 3-D due to one layer of surrounding border. Computes to the color of ''ButtonFace'' .
79237952
79247953 <dt> <dfn>ButtonShadow</dfn>
79257954 <dd> The color of the border away from the light source for 3-D elements
7926- that appear 3-D due to one layer of surrounding border. Same as ''ButtonFace'' .
7955+ that appear 3-D due to one layer of surrounding border. Computes to the color of ''ButtonFace'' .
79277956
79287957 <dt> <dfn>CaptionText</dfn>
7929- <dd> Text in caption, size box, and scrollbar arrow box. Same as ''CanvasText'' .
7958+ <dd> Text in caption, size box, and scrollbar arrow box. Computes to the color of ''CanvasText'' .
79307959
79317960 <dt> <dfn>InactiveBorder</dfn>
7932- <dd> Inactive window border. Same as ''ButtonBorder'' .
7961+ <dd> Inactive window border. Computes to the color of ''ButtonBorder'' .
79337962
79347963 <dt> <dfn>InactiveCaption</dfn>
7935- <dd> Inactive window caption. Same as ''Canvas'' .
7964+ <dd> Inactive window caption. Computes to the color of ''Canvas'' .
79367965
79377966 <dt> <dfn>InactiveCaptionText</dfn>
7938- <dd> Color of text in an inactive caption. Same as ''GrayText'' .
7967+ <dd> Color of text in an inactive caption. Computes to the color of ''GrayText'' .
79397968
79407969 <dt> <dfn>InfoBackground</dfn>
7941- <dd> Background color for tooltip controls. Same as ''Canvas'' .
7970+ <dd> Background color for tooltip controls. Computes to the color of ''Canvas'' .
79427971
79437972 <dt> <dfn>InfoText</dfn>
7944- <dd> Text color for tooltip controls. Same as ''CanvasText'' .
7973+ <dd> Text color for tooltip controls. Computes to the color of ''CanvasText'' .
79457974
79467975 <dt> <dfn>Menu</dfn>
7947- <dd> Menu background. Same as ''Canvas'' .
7976+ <dd> Menu background. Computes to the color of ''Canvas'' .
79487977
79497978 <dt> <dfn>MenuText</dfn>
7950- <dd> Text in menus. Same as ''CanvasText'' .
7979+ <dd> Text in menus. Computes to the color of ''CanvasText'' .
79517980
79527981 <dt> <dfn>Scrollbar</dfn>
7953- <dd> Scroll bar gray area. Same as ''Canvas'' .
7982+ <dd> Scroll bar gray area. Computes to the color of ''Canvas'' .
79547983
79557984 <dt> <dfn>ThreeDDarkShadow</dfn>
79567985 <dd> The color of the darker (generally outer) of the two borders away
79577986 from the light source for 3-D elements that appear 3-D due to two
7958- concentric layers of surrounding border. Same as ''ButtonBorder'' .
7987+ concentric layers of surrounding border. Computes to the color of ''ButtonBorder'' .
79597988
79607989 <dt> <dfn>ThreeDFace</dfn>
79617990 <dd> The face background color for 3-D elements that appear 3-D due to
7962- two concentric layers of surrounding border. Same as ''ButtonFace'' .
7991+ two concentric layers of surrounding border. Computes to the color of ''ButtonFace'' .
79637992
79647993 <dt> <dfn>ThreeDHighlight</dfn>
79657994 <dd> The color of the lighter (generally outer) of the two borders facing
79667995 the light source for 3-D elements that appear 3-D due to two
7967- concentric layers of surrounding border. Same as ''ButtonBorder'' .
7996+ concentric layers of surrounding border. Computes to the color of ''ButtonBorder'' .
79687997
79697998 <dt> <dfn>ThreeDLightShadow</dfn>
79707999 <dd> The color of the darker (generally inner) of the two borders facing
79718000 the light source for 3-D elements that appear 3-D due to two
7972- concentric layers of surrounding border. Same as ''ButtonBorder'' .
8001+ concentric layers of surrounding border. Computes to the color of ''ButtonBorder'' .
79738002
79748003 <dt> <dfn>ThreeDShadow</dfn>
79758004 <dd> The color of the lighter (generally inner) of the two borders away
79768005 from the light source for 3-D elements that appear 3-D due to two
7977- concentric layers of surrounding border. Same as ''ButtonBorder'' .
8006+ concentric layers of surrounding border. Computes to the color of ''ButtonBorder'' .
79788007
79798008 <dt> <dfn>Window</dfn>
7980- <dd> Window background. Same as ''Canvas'' .
8009+ <dd> Window background. Computes to the color of ''Canvas'' .
79818010
79828011 <dt> <dfn>WindowFrame</dfn>
7983- <dd> Window frame. Same as ''ButtonBorder'' .
8012+ <dd> Window frame. Computes to the color of ''ButtonBorder'' .
79848013
79858014 <dt> <dfn>WindowText</dfn>
7986- <dd> Text in windows. Same as ''CanvasText'' .
8015+ <dd> Text in windows. Computes to the color of ''CanvasText'' .
79878016 </dl>
79888017
79898018 <wpt>
@@ -8247,6 +8276,12 @@ Changes</h2>
82478276 <a href="https://www.w3.org/TR/2025/CRD-css-color-4-20250424/">Candidate Recommendation Draft of 24 April 2025</a></h3>
82488277
82498278<ul>
8279+ <li> Clarified that the computed value of a deprecated system color
8280+ is the color of the corresponding (non-deprecated) system color
8281+ (<a href="https://github.com/w3c/csswg-drafts/issues/3873">Issue 3873</a> ,
8282+ <a href="https://github.com/w3c/csswg-drafts/issues/13459">Issue 13459></a> ,
8283+ <a href="https://github.com/w3c/csswg-drafts/issues/13719">Issue 13719</a> )
8284+ </li>
82508285 <li> Consolidated the resolution of system colors and deprecated system colors
82518286 (<a href="https://github.com/w3c/csswg-drafts/issues/13450">Issue 13450</a> )
82528287 </li>
0 commit comments