Skip to content

Remove duplicate script-blocking style sheet requirement #8759

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

Merged
merged 4 commits into from
Jan 24, 2024
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
23 changes: 11 additions & 12 deletions cssom-1/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ urlPrefix: https://html.spec.whatwg.org/multipage/
urlPrefix: semantics.html
type: dfn
text: a style sheet that is blocking scripts
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still used by the Link section, so we can probably remove it once we address #8759 (comment).

text: contributes a script-blocking style sheet
for: Document
text: script-blocking style sheet set
urlPrefix: https://dom.spec.whatwg.org/#concept-
type: dfn
text: dispatch; url: event-dispatch
Expand Down Expand Up @@ -1155,9 +1158,14 @@ steps:

<ol>
<li>Add the <a>CSS style sheet</a> to the list of
<a>document or shadow root CSS style sheets</a> at the appropriate location. The
remainder of these steps deal with the
<a>disabled flag</a>.
<a>document or shadow root CSS style sheets</a> at the appropriate location.

<li>
<p>If the <a>CSS style sheet</a>'s <a for=CSSStyleSheet>owner node</a> <a>contributes a
script-blocking style sheet</a>, then user agents must <a for=list>append</a> the <a
for=CSSStyleSheet>owner node</a> to its <a>node document</a>'s <a for=Document>script-blocking
style sheet set</a>.</p>
<p class="note">The remainder of these steps deal with the <a>disabled flag</a>.</p>

<li>If the <a>disabled flag</a> is set, then return.

Expand Down Expand Up @@ -1543,15 +1551,6 @@ must be run:
</ol>
</div>

A style sheet referenced by an <a>xml-stylesheet processing instruction</a> using the rules in this section, in the context of
the {{Document}} of an <a>XML parser</a> is said to be
<a>a style sheet that is blocking scripts</a> if the <code>ProcessingInstruction</code>
<a>node</a> was created by that {{Document}}'s parser, and the style sheet was
enabled when the node was created by the parser, the last time the
<a>event loop</a> reached step 1, the node was in that Document,
and the user agent hasn't given up on loading that particular style sheet
yet. A user agent may give up on such a style sheet at any time.

### Requirements on user agents Implementing the HTTP Link Header ### {#requirements-on-user-agents-implementing-the-http-link-header}

<!-- XXX ref, one day -->
Expand Down