RESOLVED FIXED 172137
Implement caretPositionFromPoint()
https://bugs.webkit.org/show_bug.cgi?id=172137
Summary Implement caretPositionFromPoint()
Attachments
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
Karl Dubost
Comment 3 2024-01-17 16:19:39 PST
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
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
Note You need to log in before you can comment on or make changes to this bug.