Bug 245130

Summary: Range.getClientRects() returns empty rectangle list for valid text node offset
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: ap, bfulgham, rniwa, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: Mac (Apple Silicon)   
OS: macOS 12   

Description Ahmad Saleem 2022-09-13 04:29:44 PDT
Hi Team,

Another Chrome Monorail expedition and came across another broken test case compared to other browsers in Safari 16 and Safari Technology Preview 153.

Link - https://jsfiddle.net/wkv947qg/

Chrome Bug - https://bugs.chromium.org/p/chromium/issues/detail?id=389054

_____

*** STEPS TO REPRODUCE ***

1) Open Link and notice the value within textarea

<< ACTUAL RESULT >>

'0' (without quotes)

<< EXPECTED RESULTS & OTHER BROWSERS [Chrome Canary 107 and Firefox Nightly 106] >>

'1' (without quotes)

___

Appreciate if this can be fixed and aligned with other browsers.

Thanks!
Comment 1 Radar WebKit Bug Importer 2022-09-20 04:30:21 PDT
<rdar://problem/100166822>
Comment 2 Ahmad Saleem 2023-01-22 01:54:29 PST
I tested with Selection API enabled on WebKit Trunk (which is turned off by default and waiting on PR (https://github.com/WebKit/WebKit/pull/8267)) and it is fixed and shows '1'. I am closing it. Thanks!