From 6171a58d965e4bf3cd14e939c9c5c69fd952f826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Wed, 20 Mar 2024 11:14:32 +0100 Subject: [PATCH] [render-blocking] Fix implicitly-render-blocking definition. As per discussion in #10145. --- source | 41 +++++++++++++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/source b/source index 711e1a3ea51..ed77ac2f7f0 100644 --- a/source +++ b/source @@ -1838,6 +1838,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • If removedNode's popover attribute is not in the no popover state, then run the hide popover algorithm given removedNode, false, false, and false.

  • + +
  • Set removedNode's implicitly potentially render-blocking flag to + false.

  • A possible blocking tokens.

    + + +

    Elements have an associated boolean implicitly potentially render-blocking flag, + initially false.

    +

    An element is potentially render-blocking if its blocking tokens set contains "render", or if it is - implicitly potentially render-blocking, which will be defined at the individual - elements. By default, an element is not implicitly potentially render-blocking.

    + implicitly potentially render-blocking. Elements are not implicitly potentially + render-blocking by default.

    Fetch priority attributes

    @@ -17592,8 +17600,12 @@ console.log(style.disabled); // false

    The child text content of a style element must be that of a conformant style sheet.

    -

    A style element is implicitly potentially render-blocking if the - element was created by its node document's parser.

    +

    A style element on creation must set its implicitly potentially + render-blocking flag to true if the element was created by its node document's + parser.

    + +

    A style element is implicitly potentially render-blocking if its + implicitly potentially render-blocking flag is true.


    @@ -27728,8 +27740,12 @@ document.body.appendChild(wbr);

    The default type for resources given by the stylesheet keyword is text/css.

    -

    A link element of this type is implicitly potentially render-blocking - if the element was created by its node document's parser.

    +

    A link element on creation must set its implicitly potentially + render-blocking flag to true if the element was created by its node document's + parser.

    + +

    A link element is implicitly potentially render-blocking if its + implicitly potentially render-blocking flag is true.

    @@ -62237,11 +62253,16 @@ o............A....e
    +

    A script element on creation must set its implicitly potentially + render-blocking flag to true if the element was created by its node document's + parser.

    +

    A script element el is implicitly potentially - render-blocking if el's type is - "classic", el is parser-inserted, and - el does not have an async or defer attribute.

    + render-blocking if el's implicitly potentially render-blocking flag + slot is true, el's type is + "classic", and el does not have an + async or defer + attribute.

    The cloning steps for a script element el being cloned to a copy copy are to set copy's