Bug 245130 - Range.getClientRects() returns empty rectangle list for valid text node offset
Summary: Range.getClientRects() returns empty rectangle list for valid text node offset
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari Technology Preview
Hardware: Mac (Apple Silicon) macOS 12
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-09-13 04:29 PDT by Ahmad Saleem
Modified: 2023-01-22 01:54 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!