Bug 263040 - getBoundingClientRect return a wrong rect on a range that ends at the beginning of an element
Summary: getBoundingClientRect return a wrong rect on a range that ends at the beginni...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: Safari Technology Preview
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-10-11 14:56 PDT by Ryosuke Niwa
Modified: 2023-10-12 13:23 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2023-10-11 14:56:39 PDT
When a range ends at the beginning of an element, we incorrectly include the text in the element in getBoundingClientRect.

<rdar://112543805>
Comment 1 Ryosuke Niwa 2023-10-11 15:00:44 PDT
Pull request: https://github.com/WebKit/WebKit/pull/18961
Comment 2 EWS 2023-10-12 13:23:12 PDT
Committed 269271@main (fc487e690086): <https://commits.webkit.org/269271@main>

Reviewed commits have been landed. Closing PR #18961 and removing active labels.