Closed Bug 1899600 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 46538 - Add a new options argument to `document.caretPositionFromPoint` API.

Categories

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

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Siye Liu <siliu@microsoft.com> wrote:

Add a new options argument to document.caretPositionFromPoint API.

Per https://github.com/w3c/csswg-drafts/issues/10345, we should change
shadowRoots parameter from a rest parameter to a dictionary which
contains an array of shadow roots.

Bug: 41487363
Change-Id: I0686d1eae75797ae07cad215a71a24ab54c7398d
Reviewed-on: https://chromium-review.googlesource.com/5553027
WPT-Export-Revision: f0cf586c7e0b3cc6544c9b2fd11c7d12a5572d29

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 13 subtests

Status Summary

Firefox

OK : 1
PASS: 7
FAIL: 6

Chrome

OK : 1
PASS: 1
FAIL: 12

Safari

OK : 1
PASS: 1
FAIL: 12

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

New Tests That Don't Pass

  • /shadow-dom/Document-caretPositionFromPoint.tentative.html [wpt.fyi]
    • document.caretPositionFromPoint() throws when called without the correct parameters: FAIL (Chrome: PASS, Safari: PASS)
    • document.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to a textarea element which is the offsetNode.: FAIL (Chrome: FAIL, Safari: FAIL)
    • document.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the input element's shadow host's parent when the shadow tree is not specified as an argument.: FAIL (Chrome: FAIL, Safari: FAIL)
    • document.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the shadow host's parent when the shadow tree is not specified as an argument: FAIL (Chrome: FAIL, Safari: FAIL)
    • document.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the outer shadow host's parent when the point is in an inner shadow tree and no shadow tree is specified as an argument: FAIL (Chrome: FAIL, Safari: FAIL)
    • document.caretPositionFromPoint() should return a CaretPosition at the specified location pointing to the outer shadow tree when the point is in an inner shadow tree and the outer shadow tree is specified as an argument: FAIL (Chrome: FAIL, Safari: FAIL)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a189f74473da [wpt PR 46538] - Add a new options argument to `document.caretPositionFromPoint` API., a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.