Closed Bug 1864757 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 43156 - Add test for document.caretPositionFromPoint()

Categories

(Core :: DOM: CSS Object Model, task, P4)

task

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Dan Clark <daniec@microsoft.com> wrote:

Add test for document.caretPositionFromPoint()

Existing test coverage of document.caretPositionFromPoint() consists of https://wpt.fyi/results/css/cssom/caretPositionFromPoint-with-transformation.html
and some sub-tests in https://wpt.fyi/results/css/cssom-view/idlharness.html. Neither test does much to inspect the contents of the returned CaretRange and verify that it actually corresponds to the intended position.

Add a test to ensure that document.caretPositionFromPoint() returns what it's supposed to for a basic case, and check that various cases with invalid input return null as expected.

Component: web-platform-tests → DOM: CSS Object Model
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/cc84dcafc3f2 [wpt PR 43156] - Add test for document.caretPositionFromPoint(), a=testonly
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/289352eb3c24 [wpt PR 43156] - Add test for document.caretPositionFromPoint(), a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.