WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
172137
Implement caretPositionFromPoint()
https://bugs.webkit.org/show_bug.cgi?id=172137
Summary
Implement caretPositionFromPoint()
Simon Fraser (smfr)
Reported
2017-05-15 15:04:53 PDT
https://www.w3.org/TR/cssom-view-1/#dom-document-caretpositionfrompoint
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2022-07-28 14:37:37 PDT
WPT test cases fail in Safari 15.6 on macOS 12.5 -
https://wpt.fyi/results/css/cssom?label=master&label=experimental&aligned&q=caretpositionfrompoint
Only Firefox seems to pass them so far.
Radar WebKit Bug Importer
Comment 2
2022-07-28 20:16:19 PDT
<
rdar://problem/97760045
>
Karl Dubost
Comment 3
2024-01-17 16:19:39 PST
seeAlso
https://github.com/WebKit/standards-positions/issues/301
Benjamin Atkin
Comment 4
2024-06-01 22:53:29 PDT
I found that it doesn't return the element within the shadow DOM and looked for a way to get it. There doesn't appear to be one yet. A shadowRoots parameter was added to the draft:
https://github.com/w3c/csswg-drafts/pull/10200
https://github.com/w3c/csswg-drafts/blob/main/cssom-view-1/Overview.bs#L1018
https://drafts.csswg.org/cssom-view-1/#extensions-to-the-document-interface
Rob Buis
Comment 5
2024-10-09 03:30:50 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/34903
EWS
Comment 6
2024-11-24 17:29:54 PST
Committed
287047@main
(129140715fbb): <
https://commits.webkit.org/287047@main
> Reviewed commits have been landed. Closing PR #34903 and removing active labels.
Luke Warlow
Comment 7
2025-01-27 09:14:32 PST
Is there a bug to track shipping this? Currently it's implemented but disabled by default?
Mirko Brodesser
Comment 8
2025-03-10 06:59:52 PDT
Luke:
https://bugs.webkit.org/show_bug.cgi?id=286941
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug