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

Specify what happens when “disabled” is added to a link@rel=stylesheet #9870

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
8 changes: 3 additions & 5 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -3944,7 +3944,6 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://drafts.csswg.org/cssom/#associated-css-style-sheet">associated CSS style sheet</dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/cssom/#create-a-constructed-cssstylesheet">create a constructed <code>CSSStyleSheet</code></dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/cssom/#synchronously-replace-the-rules-of-a-cssstylesheet">synchronously replace the rules of a <code>CSSStyleSheet</code></dfn></li>
<li><dfn data-x-href="https://drafts.csswg.org/cssom/#disable-a-css-style-sheet">disable a CSS style sheet</dfn></li>
<li>
<dfn data-x="CSS style sheet"
data-x-href="https://drafts.csswg.org/cssom/#css-style-sheet">CSS style sheets</dfn> and their
Expand Down Expand Up @@ -15396,6 +15395,9 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<code>link</code> elements that have a <code data-x="attr-link-rel">rel</code> attribute that
contains the <code data-x="rel-stylesheet">stylesheet</code> keyword.</p>

<p>Whenever the <code data-x="attr-link-disabled">disabled</code> attribute is set, <span
sideshowbarker marked this conversation as resolved.
Show resolved Hide resolved
data-x="remove a CSS style sheet">remove</span> the <span>associated CSS style sheet</span>.</p>

<p>Whenever the <code data-x="attr-link-disabled">disabled</code> attribute is removed, set the
<code>link</code> element's <span>explicitly enabled</span> attribute to true.</p>

Expand Down Expand Up @@ -27485,10 +27487,6 @@ document.body.appendChild(wbr);</code></pre>

<div w-nodev>

<p>When the <code data-x="attr-link-disabled">disabled</code> attribute of a <code>link</code>
element with a <code data-x="rel-stylesheet">stylesheet</code> keyword is set, <span
data-x="disable a CSS style sheet">disable</span> the <span>associated CSS style sheet</span>.</p>

<p>The appropriate times to <span data-x="fetch and process the linked resource">fetch and
process</span> this type of link are:

Expand Down
Loading