Skip to content

Commit aee8efe

Browse files
committed
[css-color-adjust] Define color-scheme: normal to be hookable by HTML.
This allows HTML to "set" the used value of the color-scheme property, via a meta tag. Part of whatwg/html#7213 Closes #6726
1 parent 9885aa0 commit aee8efe

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

css-color-adjust-1/Overview.bs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,20 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme
159159
user agents cannot automatically adapt the colors used in elements under their control,
160160
as it might cause unreadable color contrast with the surrounding page.
161161

162+
Host languages can define the <dfn export>page's supported color schemes</dfn>,
163+
a list of [=color schemes=] supported by default for all elements on that page.
164+
165+
Note: [[HTML]] specifies a
166+
<a href="https://html.spec.whatwg.org/multipage/semantics.html#meta-color-scheme">color-scheme</a>
167+
<{meta}> tag which can be used to set the [=page's supported color schemes=].
168+
162169
Values are defined as follows:
163170

164171
<dl dfn-type=value dfn-for=color-scheme>
165172
: <dfn>normal</dfn>
166173
::
167-
Indicates that the element doesn't support [=color schemes=] at all,
168-
and so the element should be rendered with the browser's default [=color scheme=].
169-
170-
(This is typically, tho not always, similar to ''light''.)
174+
Indicates that the element supports the [=page's supported color schemes=],
175+
if they are set, or that it supports no [=color schemes=] at all otherwise.
171176

172177
: <dfn>light</dfn>
173178
::
@@ -317,11 +322,6 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme
317322
the rest of the page will respect the user's preference.
318323
</div>
319324

320-
Note: [[HTML]] specifies a
321-
<a href="https://html.spec.whatwg.org/multipage/semantics.html#meta-color-scheme">color-scheme</a>
322-
<{meta}> tag which can be used to set the color-scheme on the root element as
323-
a [[css-cascade-4#preshint|non-CSS presentational hint]].
324-
325325
Note: Repeating a keyword, such as ''color-scheme: light light'',
326326
is valid but has no additional effect
327327
beyond what the first instance of the keyword provides.

0 commit comments

Comments
 (0)