Bug 263040

Summary: getBoundingClientRect return a wrong rect on a range that ends at the beginning of an element
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   

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.