Bug 126306

Summary: Results of getBoundingClientRect() is wrong for fragmented element
Product: WebKit Reporter: Dirk Schulze <krit>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ahmad.saleem792, ap, bfulgham, bjonesbe, dino, mibalan, rniwa, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://lists.w3.org/Archives/Public/www-style/2013Dec/0462.html
Attachments:
Description Flags
Safari 15.6.1 and STP 151 differ and all other browsers with each other none

Description Dirk Schulze 2013-12-30 14:49:15 PST
getBoundingClientRect() maybe should return the closest rectangle including the border-box of the element as well as the border-box of all ancestors. Right now, it returns the dimension of the element based on the first fragment.

http://jsfiddle.net/6LkvZ/
Comment 1 Ahmad Saleem 2022-08-20 06:34:34 PDT
Created attachment 461759 [details]
Safari 15.6.1 and STP 151 differ and all other browsers with each other

Just wanted to share updated results and screenshot:

*** Safari 15.6.1 / Safari Technology Preview ***

width: 333.5625 height: 140

*** Firefox Nightly 105 ***

width: 333.6000061035156 height: 139.11666870117188

*** Chrome Canary 106 ***

width: 333.5859375 height: 147

________

Please refer to above results. Thanks!
Comment 2 Radar WebKit Bug Importer 2022-08-20 18:17:10 PDT
<rdar://problem/98934884>