[wpt-sync] Sync PR 43156 - Add test for document.caretPositionFromPoint()
Categories
(Core :: DOM: CSS Object Model, task, P4)
Tracking
()
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 returnedCaretRange
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.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Assignee | ||
Comment 3•2 years ago
|
||
Comment 5•2 years ago
|
||
bugherder |
Description
•