Closed Bug 1932179 Opened 22 days ago Closed 14 days ago

[wpt-sync] Sync PR 49267 - DOM: Flag-guard moveBefore()'s range and selection preservation

Categories

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

task

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Dominic Farolino <dom@chromium.org> wrote:

DOM: Flag-guard moveBefore()'s range and selection preservation

Per discussion in https://github.com/whatwg/dom/pull/1307, we've
decided to not ship range and selection preservation initially. Since
this was mostly implemented in Chromium, this CL flag-gaurds our
implementation of that preservation (so it does not ship along with
the rest of the API's side-effects) and updates the tests.

R=nrosenthal@chromium.org

Bug: 40150299
Change-Id: Ia4412d95859497593ac2e4d9e9b87dfc36240ef4
Reviewed-on: https://chromium-review.googlesource.com/6022661
WPT-Export-Revision: 5458985a7940fccfec459eaf1b51504b2886e5a9

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

CI Results

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

Total 2 tests and 6 subtests

Status Summary

Firefox

OK : 2
FAIL: 9

Chrome

OK : 2
FAIL: 9

Safari

OK : 2
FAIL: 9

Links

GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /dom/nodes/moveBefore/tentative/live-range-updates.html [wpt.fyi]
    • moveBefore still results in range startContainer snapping up to parent when startContainer is moved: FAIL (Chrome: FAIL, Safari: FAIL)
    • moveBefore still causes range startContainer to snap up to parent, when startContainer ancestor is moved: FAIL (Chrome: FAIL, Safari: FAIL)
    • moveBefore still causes range endContainer to snap up to parent, when endContainer ancestor is moved: FAIL (Chrome: FAIL, Safari: FAIL)
  • /dom/nodes/moveBefore/tentative/selection-preserve.html [wpt.fyi]
    • moveBefore should not reset selection with preceding text: FAIL (Chrome: FAIL, Safari: FAIL)
    • moveBefore resets selection that enters a subtree, when the whole selection is moved: FAIL (Chrome: FAIL, Safari: FAIL)
    • moveBefore anchor node moved up to expand selection and absorb nodes: FAIL (Chrome: FAIL, Safari: FAIL)
    • moveBefore move intersecting nodes out of a selection: FAIL (Chrome: FAIL, Safari: FAIL)
    • moveBefore focus node moved up to shrink selection and exclude nodes; focus node gets reset: FAIL (Chrome: FAIL, Safari: FAIL)
    • moveBefore selection is not preserved, especially when underlying range gets inverted: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/748dd806b6f0 [wpt PR 49267] - DOM: Flag-guard moveBefore()'s range and selection preservation, a=testonly https://hg.mozilla.org/integration/autoland/rev/fe8cc09d28f8 [wpt PR 49267] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in before you can comment on or make changes to this bug.