Closed Bug 1832813 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 39981 - Avoid unnecessary re-creation of ContainerQueryEvaluator

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

Avoid unnecessary re-creation of ContainerQueryEvaluator

Changing to/from display:contents we used to require a re-creation of
the ContainerQueryEvaluator, but now we should update queries and
invalidate properly in UpdateStyleForNonEligibleContainer().

This also fixes a bug with not invalidating querying elements at all if
we were only using style() queries and display changed to 'contents'.

Bug: 1445044
Change-Id: I1c70ed0ef4e6449e44651021dea49240a80f32e0
Reviewed-on: https://chromium-review.googlesource.com/4526080
WPT-Export-Revision: ad794e9e0fd675ef95ee75e73448bc453a055d9d

Component: web-platform-tests → Layout
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/57627382e02b [wpt PR 39981] - Avoid unnecessary re-creation of ContainerQueryEvaluator, a=testonly https://hg.mozilla.org/integration/autoland/rev/f8e15c063fc3 [wpt PR 39981] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.