Summary: | Selection has extra ClientRects at the end/beginning of some lines | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Steve <steve> | ||||
Component: | Text | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ahmad.saleem792, ap, bfulgham, manian, rniwa, simon.fraser, webkit-bug-importer, zalan | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | Safari 9 | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Steve
2015-08-27 10:45:27 PDT
It looks like the W3C standard for getClientRects is not yet finalized, so there is no consensus on how this should work. For now, Chrome and Safari agree on the behavior. We should revisit this once the behavior is standardized. I am able to reproduce this bug in Safari 15.6 on macOS 12.5 and it shows "ClientRects.length" (2) while end and start of the line while all other browsers (Chrome Canary 106 and Firefox Nightly 105) only show '1'. Thanks! Pull request: https://github.com/WebKit/WebKit/pull/3312 Committed 253536@main (b9508a969a49): <https://commits.webkit.org/253536@main> Reviewed commits have been landed. Closing PR #3312 and removing active labels. |