Closed Bug 1913834 Opened 6 months ago Closed 6 months ago

[wpt-sync] Sync PR 47673 - Keep ::backdrop next to element in sync remove+add case

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
131 Branch
Tracking Status
firefox131 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Joey Arhar <jarhar@chromium.org> wrote:

Keep ::backdrop next to element in sync remove+add case

In the case that a top layer element is synchronously removed and
re-added to the top layer, it is supposed to get moved to the front of
the top layer list. However, its ::backdrop was not staying next to it
in the top layer list, which caused it to fall behind other top layer
elements.

This patch removes and re-adds any top layer element's ::backdrop when
it gets removed and re-added. This matches the rendering of firefox and
safari.

Fixed: 360158414
Change-Id: I3a619b248999a79139ced7a52591809e03e2a6c9

Reviewed-on: https://chromium-review.googlesource.com/5788966
WPT-Export-Revision: 8310a41621ddc34ba437e98da871fad4592a7d3c

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

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

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

FAIL: 1

Safari

PASS: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/53b535814326 [wpt PR 47673] - Keep ::backdrop next to element in sync remove+add case, a=testonly
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 131 Branch
You need to log in before you can comment on or make changes to this bug.