Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak <meta name=color-scheme> definition. #7226

Merged
merged 2 commits into from
Oct 18, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3778,6 +3778,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute

<ul class="brief">
<li><dfn data-x-href="https://drafts.csswg.org/css-color-adjust/#color-scheme-prop">'color-scheme'</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/css-color-adjust/#pages-supported-color-schemes">page's supported color-schemes</dfn></li>
</ul>

<p>The following term is defined in <cite>CSS Pseudo-Elements</cite>: <ref spec=CSSPSEUDO></p>
Expand Down Expand Up @@ -14589,8 +14590,7 @@ interface <dfn interface>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
be provided in a <code>meta</code> element.</p>

<p>The value must be a string that matches the syntax for the CSS <span>'color-scheme'</span>
property value, and will be cascaded with the color-scheme declarations for the document root
element as described below.</p>
property value. It determines the <span>page's supported color-schemes</span>.</p>
emilio marked this conversation as resolved.
Show resolved Hide resolved

<p>There must not be more than one <code>meta</code> element with its <code
data-x="attr-meta-name">name</code> attribute value set to an
Expand All @@ -14606,7 +14606,7 @@ interface <dfn interface>HTMLMetaElement</dfn> : <span>HTMLElement</span> {

<div w-nodev>

<p>To obtain a page's color-scheme, user agents must run the following steps:</p>
<p>To obtain a <span>page's supported color-schemes</span>, user agents must run the following steps:</p>
emilio marked this conversation as resolved.
Show resolved Hide resolved

<ol>
<li>
Expand All @@ -14631,11 +14631,11 @@ interface <dfn interface>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
<code data-x="attr-meta-content">content</code> attribute.</li>

<li>If <var>parsed</var> is a valid CSS <span>'color-scheme'</span> property value, then
treat that value as a declaration of the CSS <span>'color-scheme'</span> property on
<var>element</var>'s <span>root</span>, cascaded as a <span
data-x="presentational hints">presentational hint</span>, and return.</li>
return <var>parsed</var>.</li>
</ol>
</li>

<li><p>Return null.</p></li>
</ol>

emilio marked this conversation as resolved.
Show resolved Hide resolved
<p>If any <code>meta</code> elements are <span data-x="node is inserted into a
Expand Down