@@ -20,13 +20,20 @@ WPT Display: open
20
20
</pre>
21
21
<pre class='link-defaults'>
22
22
spec:css2; type:dfn; text:canvas
23
+ spec:css-backgrounds-3; type:property;
24
+ text:border-color
25
+ text:box-shadow
23
26
spec:css-color-4; type:property; text:color
27
+ spec:css-color-5; type:function; text:color()
24
28
spec:fill-stroke-3; type:property;
25
29
text:fill
26
30
text:stroke
27
- spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/; type: dfn;
28
- text: navigable; for:Window; url: nav-history-apis.html#window-navigable
29
- text: top-level traversable; for:/; url: document-sequences.html#top-level-traversable
31
+ spec:css-gaps-1; type:property; text:column-rule-color
32
+ spec: html;
33
+ text:body; type:element
34
+ text:meta; type:element
35
+ text:navigable; type:dfn; for:Window;
36
+ text:top-level traversable; type:dfn; for:/;
30
37
</pre>
31
38
32
39
<pre class=anchors>
@@ -57,7 +64,9 @@ Introduction {#intro}
57
64
to automatically adjust colors to the user's assumed performance preferences,
58
65
such as suppressing background colors when printing to save ink.
59
66
60
- Together with the 'prefers-color-scheme' , 'prefers-contrast' , and 'forced-colors' [=media queries=] [[!MEDIAQUERIES-5]] ,
67
+ Together with the <a descriptor for=@media>prefers-color-scheme</a> ,
68
+ <a descriptor for=@media>prefers-contrast</a> , and
69
+ <a descriptor for=@media>forced-colors</a> [=media queries=] [[!MEDIAQUERIES-5]] ,
61
70
this module allows color scheme negotiation
62
71
between the author and the user.
63
72
@@ -171,7 +180,7 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme
171
180
rendering/dark-color-scheme/color-scheme-visited-link-initial.html
172
181
</wpt>
173
182
174
- While the ' prefers-color-scheme' media feature
183
+ While the <a descriptor for=@media> prefers-color-scheme</a> media feature
175
184
allows an author to adapt the page’s colors to the user’s preferred color scheme,
176
185
many parts of the page are not under the author's control
177
186
(such as form controls, scrollbars, etc).
@@ -244,7 +253,7 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme
244
253
To <dfn noexport>determine the used color scheme</dfn> of an element:
245
254
246
255
1. If the user's [=preferred color scheme=] ,
247
- as indicated by the ' prefers-color-scheme' media feature,
256
+ as indicated by the <a descriptor for=@media> prefers-color-scheme</a> media feature,
248
257
is present among the listed [=color schemes=] ,
249
258
and is supported by the user agent,
250
259
that's the element's [=used color scheme=] .
@@ -275,7 +284,7 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme
275
284
276
285
<div class=example>
277
286
A page that responds to user preferences for light or dark display
278
- by using the ' prefers-color-scheme' media feature
287
+ by using the <a descriptor for=@media> prefers-color-scheme</a> media feature
279
288
to alter the colors it uses
280
289
can easily opt the browser-controlled UI
281
290
(scrollbars, inputs, etc)
@@ -420,7 +429,7 @@ to conform to either a [=dark=] or [=light=] color scheme.
420
429
and have indicated so using the 'color-scheme' property
421
430
or <{meta/name/color-scheme}> <{meta}> name,
422
431
this has no effect other than reporting a ''@media/prefers-color-scheme/dark'' value
423
- for the ' prefers-color-scheme' [=media query=]
432
+ for the <a descriptor for=@media> prefers-color-scheme</a> [=media query=]
424
433
and selecting a [=dark=] [=used color scheme=] .
425
434
426
435
But for pages that do not explicitly support a [=dark=] color scheme,
@@ -788,7 +797,7 @@ Forced Color Palettes {#forced}
788
797
<!--THOUGHTS
789
798
This advice (below) maybe makes sense for (prefers-contrast),
790
799
but is it really applicable to forced-colors as well?
791
- If so, should forced-colors be instead a 'forced' value on ' prefers-contrast' ,
800
+ If so, should forced-colors be instead a 'forced' value on <a descriptor for=@media> prefers-contrast</a> ,
792
801
so that a (prefers-contrast) query will catch all of these cases at once?
793
802
794
803
Authors are encouraged to simplify the contrast in their pages
0 commit comments