Closed Bug 1766966 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33858 - [@container] Upgrade parent document if needed

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox102 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 33858 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/33858
Details from upstream follow.

Anders Hartvoll Ruud <andruud@chromium.org> wrote:

[@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.

Note that the WPT currently fails due to Issue 1321010, but it's
still a useful test for this CL since it would crash without the fix.

Fixed: 1312940
Bug: 1321010
Change-Id: I6bd554618662fbb6d7e7a505d67aaeed0a4b4f03
Reviewed-on: https://chromium-review.googlesource.com/3613269
WPT-Export-Revision: a2a28ade9b59928bbe8c06de627f8db1d16d6602

Component: web-platform-tests → Layout
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests and 1 subtests

Status Summary

Firefox

ERROR: 1

Chrome

OK : 1
FAIL : 1

Safari

OK : 1
FAIL : 1

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/38a00ee9f434
[wpt PR 33858] - [@container] Upgrade parent document if needed, a=testonly
https://hg.mozilla.org/integration/autoland/rev/bdaf27f350dd
[wpt PR 33858] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in before you can comment on or make changes to this bug.