From 0465417baf9873b2f81e2408b788580a615e4a56 Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Mon, 24 Apr 2023 11:38:52 -0400 Subject: [PATCH 1/4] Remove duplicate script-blocking style sheet requirement --- cssom-1/Overview.bs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/cssom-1/Overview.bs b/cssom-1/Overview.bs index 6cf2189dfa2..688148539c1 100644 --- a/cssom-1/Overview.bs +++ b/cssom-1/Overview.bs @@ -1543,15 +1543,6 @@ must be run: -A style sheet referenced by an xml-stylesheet processing instruction using the rules in this section, in the context of -the {{Document}} of an XML parser is said to be -a style sheet that is blocking scripts if the ProcessingInstruction -node 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 -event loop 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} From 2f387a7cb2e5cf2620073a194f49c363de52cba0 Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Thu, 4 May 2023 08:36:06 -0400 Subject: [PATCH 2/4] Add normative text for the script-blocking style sheet set --- cssom-1/Overview.bs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cssom-1/Overview.bs b/cssom-1/Overview.bs index 688148539c1..63c29664aad 100644 --- a/cssom-1/Overview.bs +++ b/cssom-1/Overview.bs @@ -71,6 +71,9 @@ urlPrefix: https://html.spec.whatwg.org/multipage/ urlPrefix: semantics.html type: dfn text: a style sheet that is blocking scripts + 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 @@ -1541,6 +1544,11 @@ must be run: + +If node contributes a script-blocking style sheet, then user agents must append node to its node document's script-blocking +style sheet set. + ### Requirements on user agents Implementing the HTTP Link Header ### {#requirements-on-user-agents-implementing-the-http-link-header} From e23b446aa7786079a7b2ed84b3c7dcbee4d988da Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Sun, 23 Jul 2023 16:26:14 -0400 Subject: [PATCH 3/4] Move 'contributes' check to add a CSS style sheet --- cssom-1/Overview.bs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cssom-1/Overview.bs b/cssom-1/Overview.bs index 63c29664aad..abcc107560b 100644 --- a/cssom-1/Overview.bs +++ b/cssom-1/Overview.bs @@ -1158,9 +1158,14 @@ steps:
  1. Add the CSS style sheet to the list of - document or shadow root CSS style sheets at the appropriate location. The - remainder of these steps deal with the - disabled flag. + document or shadow root CSS style sheets at the appropriate location. + +
  2. +

    If the CSS style sheet's owner node contributes a + script-blocking style sheet, then user agents must append the owner node to its node document's script-blocking + style sheet set.

    +

    The remainder of these steps deal with the disabled flag.

  3. If the disabled flag is set, then return. @@ -1545,10 +1550,6 @@ must be run:
-If node contributes a script-blocking style sheet, then user agents must append node to its node document's script-blocking -style sheet set. - ### Requirements on user agents Implementing the HTTP Link Header ### {#requirements-on-user-agents-implementing-the-http-link-header} From 2f97aae9ce04d3d7ff0fc4d950dcbedf378441bc Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Wed, 26 Jul 2023 18:03:10 -0400 Subject: [PATCH 4/4] Whitespace --- cssom-1/Overview.bs | 1 - 1 file changed, 1 deletion(-) diff --git a/cssom-1/Overview.bs b/cssom-1/Overview.bs index abcc107560b..ed8ea18e8bd 100644 --- a/cssom-1/Overview.bs +++ b/cssom-1/Overview.bs @@ -1549,7 +1549,6 @@ must be run: - ### Requirements on user agents Implementing the HTTP Link Header ### {#requirements-on-user-agents-implementing-the-http-link-header}