Skip to content

Commit db08402

Browse files
committed
[css-color-4] swatch all the things
1 parent 1f53628 commit db08402

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

css-color-4/Overview.bs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -903,33 +903,33 @@ System Colors</h3>
903903

904904
<dl id="system-color-values" data-dfn-type="value" dfn-for="<system-color>">
905905
<dt><dfn>Canvas</dfn>
906-
<dd>Background of application content or documents.
906+
<dd><span class="swatch" style="--color: canvas"></span>&nbsp;Background of application content or documents.
907907
<dt><dfn>CanvasText</dfn>
908-
<dd>Text in application content or documents.
908+
<dd><span class="swatch" style="--color: canvastext"></span>&nbsp;Text in application content or documents.
909909
<dt><dfn>LinkText</dfn>
910-
<dd>Text in non-active, non-visited links.
910+
<dd><span class="swatch" style="--color: linktext"></span>&nbsp;Text in non-active, non-visited links.
911911
<dt><dfn>VisitedText</dfn>
912-
<dd>Text in visited links.
912+
<dd><span class="swatch" style="--color: visitedtext"></span>&nbsp;Text in visited links.
913913
<dt><dfn>ActiveText</dfn>
914-
<dd>Text in active links.
914+
<dd><span class="swatch" style="--color: activetext"></span>&nbsp;Text in active links.
915915

916916
<dt><dfn>ButtonFace</dfn>
917-
<dd>The face background color for push buttons.
917+
<dd><span class="swatch" style="--color: buttonface"></span>&nbsp;The face background color for push buttons.
918918
<dt><dfn>ButtonText</dfn>
919-
<dd>Text on push buttons.
919+
<dd><span class="swatch" style="--color: buttontext"></span>&nbsp;Text on push buttons.
920920

921921
<dt><dfn>Field</dfn>
922-
<dd>Background of input fields.
922+
<dd><span class="swatch" style="--color: field"></span>&nbsp;Background of input fields.
923923
<dt><dfn>FieldText</dfn>
924-
<dd>Text in input fields.
924+
<dd><span class="swatch" style="--color: fieldtext"></span>&nbsp;Text in input fields.
925925

926926
<dt><dfn>Highlight</dfn>
927-
<dd>Background of item(s) selected in a control.
927+
<dd><span class="swatch" style="--color: highlight"></span>&nbsp;Background of item(s) selected in a control.
928928
<dt><dfn>HighlightText</dfn>
929-
<dd>Text of item(s) selected in a control.
929+
<dd><span class="swatch" style="--color: highlighttext"></span>&nbsp;Text of item(s) selected in a control.
930930

931931
<dt><dfn>GrayText</dfn>
932-
<dd>Disabled text.
932+
<dd><span class="swatch" style="--color: graytext"></span>&nbsp;Disabled text.
933933
(Often, but not necessarily, gray.)
934934
</dl>
935935

@@ -977,17 +977,17 @@ The ''<color>/currentcolor'' keyword</h3>
977977

978978
<pre class="lang-css">
979979
.foo {
980-
color: red;
981-
background-color: currentcolor;
980+
color: <span class="swatch" style="--color: red"></span>&nbsp;red;
981+
background-color: <span class="swatch" style="--color: red"></span>&nbsp;currentcolor;
982982
}
983983
</pre>
984984

985985
This is equivalent to writing:
986986

987987
<pre class="lang-css">
988988
.foo {
989-
color: red;
990-
background-color: red;
989+
color: <span class="swatch" style="--color: red"></span>&nbsp;red;
990+
background-color: <span class="swatch" style="--color: red"></span>&nbsp;red;
991991
}
992992
</pre>
993993
</div>

0 commit comments

Comments
 (0)