Closed Bug 1834719 Opened 1 years ago Closed 1 year ago

[wpt-sync] Sync PR 40187 - [@container] Track dependencies for nestes container rules

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

[@container] Track dependencies for nestes container rules

We keep track of whether elements' style depends on size and style
queries to target these elements for style invalidation when the
container changes. However, we only did so for the innermost @container
rule.

Move the dependency check for selectors into the ContainerQueryEvaluator
where nested rules are traversed and make sure we also still collect
dependencies from the container selectors when we skip query matching
for pseudo element selectors.

Bug: 1445876
Change-Id: I8f49b900158828b78f0f09abf8c78d2845b7c303
Reviewed-on: https://chromium-review.googlesource.com/4561304
WPT-Export-Revision: 7d4325c88d913c338e9d0ead05ee3f6b0a582c0e

Component: web-platform-tests → Layout
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Test result changes from PR not available.
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a66b987424cf [wpt PR 40187] - [@container] Track dependencies for nestes container rules, a=testonly https://hg.mozilla.org/integration/autoland/rev/4624fe66ec74 [wpt PR 40187] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.