Bug 1766966 [wpt PR 33858] - [@container] Upgrade parent document if needed, a=testonly
commit539842949e9530f04b7727a3bbaf400d349788ee
authorAnders Hartvoll Ruud <andruud@chromium.org>
Sun, 8 May 2022 17:41:06 +0000 (8 17:41 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Sun, 15 May 2022 20:20:51 +0000 (15 20:20 +0000)
tree90c547ac3780aae875a2bc9e0ab68e07828333de
parent1f17b4ca77c1fff7b2602c36426feeac3cbffb82
Bug 1766966 [wpt PR 33858] - [@container] Upgrade parent document if needed, a=testonly

Automatic update from web-platform-tests
[@container] Upgrade parent document if needed

If you have an iframe that's inside a container, and then call gCS
on some element inside that iframe, we need to update the style,
layout-tree *and* layout for the parent frame first. Whether or not
we should do *layout* is handled by ParentLayoutUpgrade, but it
only considered viewport-dependent media queries, not @container
dependency status.

ParentLayoutUpgrade::ShouldUpgrade, also consider whether the
Node owning the iframe needs an upgrade according to the regular
NodeLayoutUpgrade rules.

Fixed: 1312940
Bug: 1321010
Change-Id: I6bd554618662fbb6d7e7a505d67aaeed0a4b4f03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3613269
Reviewed-by: Rune Lillesveen <futhark@chromium.org>
Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/main@{#998299}

--

wpt-commits: 21971bb366f578615c4baeeb4b6040869c686504
wpt-pr: 33858
testing/web-platform/tests/css/css-contain/container-queries/iframe-in-container-invalidation.html [new file with mode: 0644]