Skip to content

Commit 04bd6ca

Browse files
committed
[css-color-4] tweaks
1 parent cf5a7fb commit 04bd6ca

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

css-color-4/Overview.bs

+29
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Introduction</h2>
7676
<abbr title="black-cyan-magenta-yellow-green-orange-violet">KCMYGOV</abbr>
7777
are supported.
7878

79+
A <a href="https://test.csswg.org/harness/results/css-color-4_dev/grouped/">draft implementation report</a> is available.
80+
7981
<h3 id="values">
8082
Value Definitions</h3>
8183

@@ -953,6 +955,22 @@ System Colors</h3>
953955
though possibly at a lower contrast rating,
954956
over any of the backgrounds.
955957

958+
<div class="example" id="SystemCombo">
959+
For example, the system color combinations in the browser you are currently using:
960+
961+
<p>Canvas with CanvasText <span style="background-color:Canvas; color:CanvasText">CanvasText</span></p>
962+
<p>Canvas with LinkText <span style="background-color:Canvas; color:LinkText">LinkText</span></p>
963+
<p>Canvas with VisitedText <span style="background-color:Canvas; color:VisitedText">VisitedText</span></p>
964+
<p>Canvas with ActiveText <span style="background-color:Canvas; color:ActiveText">ActiveText</span></p>
965+
<p>Canvas with GrayText <span style="background-color:Canvas; color:GrayText">GrayText</span></p>
966+
<p>ButtonFace with ButtonText <span style="background-color:ButtonFace; color:ButtonText">ButtonText</span></p>
967+
<p>ButtonFace with GrayText <span style="background-color:ButtonFace; color:GrayText">GrayText</span></p>
968+
<p>Field with FieldText <span style="background-color:Field; color:FieldText">FieldText</span></p>
969+
<p>Field with GrayText <span style="background-color:Field; color:GrayText">GrayText</span></p>
970+
<p>Highlight with HighlightText <span style="background-color:Highlight; color:HighlightText">HighlightText</span></p>
971+
<p>Highlight with GrayText <span style="background-color:Highlight; color:GrayText">GrayText</span></p>
972+
</div>
973+
956974
Earlier versions of CSS defined additional <<system-color>>s,
957975
which have since been deprecated.
958976
These are documented in [[#deprecated-system-colors]].
@@ -1919,6 +1937,11 @@ Device-independent Colors: Lab and LCH</h2>
19191937
Specifying Lab and LCH: the ''lab()'' and ''lch()'' functional notations</h3>
19201938
<!-- lab rather than CIELab or whatever, for brevity -->
19211939

1940+
<!-- browser tracking bugs:
1941+
Chromium https://bugs.chromium.org/p/chromium/issues/detail?id=1026287
1942+
1943+
-->
1944+
19221945
CSS allows colors to be directly expressed in Lab and LCH.
19231946

19241947
<pre class='prod'>
@@ -2191,6 +2214,12 @@ Profiled, Device-dependent Colors</h2>
21912214
<h3 id="predefined">
21922215
Predefined colorspaces: ''srgb'', ''display-p3'', ''a98-rgb'', ''prophoto-rgb'', ''rec2020'' and ''lab'''.</h3>
21932216

2217+
<!-- Browser tracking bugs:
2218+
Chromium https://bugs.chromium.org/p/chromium/issues/detail?id=1068610
2219+
2220+
Quick test https://mathiasbynens.github.io/css-dbg-stories/css-color.html
2221+
-->
2222+
21942223
The following colorspaces are predefined for use in the ''color()'' function.
21952224
They are used without any ''@color-profile'' rule.
21962225

css-color-4/style.css

+6
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ table.gamuts tr>td+td {
2727
table.gamuts tr:hover {
2828
background: papayawhip;
2929
}
30+
31+
#SystemCombo span {
32+
padding: 0.2em;
33+
border: thin solid #555;
34+
box-shadow: 2px 2px 1px rgba(0,0,0,.15)
35+
}

0 commit comments

Comments
 (0)