diff --git a/source b/source index f5417730b87..f2a2180be1c 100644 --- a/source +++ b/source @@ -4045,8 +4045,11 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute @@ -101818,25 +101821,55 @@ import "https://example.com/foo/../module2.mjs"; docs:

    -
  1. Recalculate styles and update layout for doc.

  2. - -
  3. Let depth be 0.

  4. - -
  5. Gather active resize observations at depth depth for - doc.

  6. +
  7. Let resizeObserverDepth be 0.

  8. -

    While doc has active resize observations:

    +

    While true:

      -
    1. Set depth to the result of - broadcasting active resize - observations given doc.

    2. -
    3. Recalculate styles and update layout for doc.

    4. -
    5. Gather active resize observations at depth depth for +

    6. Let hadInitialVisibleContentVisibilityDetermination be false.

    7. + +
    8. For each element element with 'auto' used value of 'content-visibility':

      +
        +
      1. Let checkForInitialDetermination be true if element's + proximity to the viewport is not determined and it is not relevant to the user. + Otherwise, let checkForInitialDetermination be false.

      2. + +
      3. Determine proximity to the viewport for element.

      4. + +
      5. If checkForInitialDetermination is true and element is now relevant to the user, + then set hadInitialVisibleContentVisibilityDetermination to true.

      6. +
      +
    9. + +
    10. If hadInitialVisibleContentVisibilityDetermination is true, then continue.

      + +
      + The intent of this step is for the initial viewport proximity + determination, which takes effect immediately, to be reflected in the + style and layout calculation which is carried out in a previous step + of this loop. Proximity determinations other than the initial one + take effect at the next rendering opportunity. +
      +
    11. + +
    12. Gather active resize observations at depth resizeObserverDepth for doc.

    13. + +
    14. If doc has active resize observations:

      + +
        +
      1. Set resizeObserverDepth to the result of + broadcasting active resize + observations given doc.

      2. + +
      3. Continue.
      4. +
      +
    15. + +
    16. Otherwise, break.