Closed Bug 2087508 Opened 1 month ago Closed 18 days ago

[wpt-sync] Sync PR 64229 - Invalidate descendants when forced stacking context reasons change

Categories

(Core :: Layout: Flexbox, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Blocks 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Philip Rogers <pdr@chromium.org> wrote:

Invalidate descendants when forced stacking context reasons change

This patch adds ComputedStyle::AllowsZIndexOnChildren() and
IsInZIndexAllowingDisplay (mirroring BlockifiesChildren() and
IsInBlockifyingDisplay) to invalidate descendant style when an
element's display changes whether layout children allow z-index and
force a stacking context. This handles both container display changes
(e.g., math to flex) and display changes on display: contents
intermediaries (e.g., contents to block inside -webkit-box).

Style invalidation is needed because AllowsZIndex and
ForcesStackingContext are computed on ComputedStyle from the layout
parent, and full descendant invalidation is needed because layout
children can be deeper descendants via display: contents.

This fixes the root-cause of a test flake on
HTMLDomScenarioRunner.MathMLInHTML.

Fixed: 575912180
Change-Id: If78a039a2ab6f67499b6521e66b89d275d6f8c43
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8615310
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Commit-Queue: Philip Rogers \<pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1727445}

Component: web-platform-tests → Layout: Flexbox
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]
Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 1464 tests

Status Summary

Firefox

OK : 389
PASS: 1[GitHub] 29[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 4785[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 5751[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt] 5753[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 5755[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview] 5756[Gecko-android-em-14-x86_64-opt-geckoview]
FAIL: 2[GitHub] 165[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 236[Gecko-android-em-14-x86_64-opt-geckoview] 237[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview] 242[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt] 244[Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

FAIL: 3

Safari

PASS: 2
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.