Bug 172137
| Summary: | Implement caretPositionFromPoint() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
| Component: | CSS | Assignee: | Rob Buis <rbuis> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ahmad.saleem792, ap, ben, bfulgham, cdumez, deleted_user, karlcow, lwarlow, rniwa, sebastianzartner, simon.fraser, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=288644 | ||
Simon Fraser (smfr)
https://www.w3.org/TR/cssom-view-1/#dom-document-caretpositionfrompoint
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
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
<rdar://problem/97760045>
Karl Dubost
seeAlso https://github.com/WebKit/standards-positions/issues/301
Benjamin Atkin
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
Pull request: https://github.com/WebKit/WebKit/pull/34903
EWS
Committed 287047@main (129140715fbb): <https://commits.webkit.org/287047@main>
Reviewed commits have been landed. Closing PR #34903 and removing active labels.
Luke Warlow
Is there a bug to track shipping this? Currently it's implemented but disabled by default?
Deleted User
Luke: https://bugs.webkit.org/show_bug.cgi?id=286941