Open Bug 1972979 Opened 15 hours ago Updated 4 hours ago

[wpt-sync] Sync PR 53268 - Don't clear the layout/style flags on moveBefore

Categories

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

task

Tracking

()

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

zhoupeng <zhoupeng.1996@bytedance.com> wrote:

Don't clear the layout/style flags on moveBefore

During moveBefore, Element::RemovedFrom does not reset
ComputedStyle to nullptr while Node::RemovedFrom clears the
layout/style flags. We intentionally preserve the flags so that the
layout is recomputed and reattached on the next style recalc. See
https://github.com/facebook/react/issues/33187 for more details.

Bug: 417426569
Change-Id: Idef745ab48d064a8d836f2785010e1d813acf5e5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6646885
Reviewed-by: Mason Freed \<masonf@chromium.org>
Reviewed-by: Noam Rosenthal \<nrosenthal@google.com>
Commit-Queue: Peng Zhou \<zhoupeng.1996@bytedance.com>
Cr-Commit-Position: refs/heads/main@{#1476013}

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 and 1 subtests

Status Summary

Firefox

OK : 1
FAIL: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

You need to log in before you can comment on or make changes to this bug.