Bug 276275

Summary: Make offsetTop/Left handle a relative positioned inline offsetParent correctly
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, glenn, karlcow, koivisto, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
rendering in safari, firefox, chrome
none
[fast-cq]Patch none

Description Ahmad Saleem 2024-07-05 17:48:21 PDT
Hi Team,

While going through Blink's commit, I came across another failing tests:

Test Case: https://jsfiddle.net/8s7y4fgk/

^ Fails in WebKit ToT, while passes in Chrome Canary 129 and Firefox Nightly 128.

Blink Commit: https://chromium.googlesource.com/chromium/src.git/+/f903f01899c880f15af678b6e44404a7d9b1735f

WebKit Source: https://searchfox.org/wubkat/rev/09f843b2c1b425e64eb641addb798b08c62f1239/Source/WebCore/rendering/RenderBoxModelObject.cpp#457

Just raising so we can fix it.

Thanks!
Comment 1 Karl Dubost 2024-07-07 23:53:54 PDT
Created attachment 471836 [details]
rendering in safari, firefox, chrome

tested in 
Safari Technology Preview  198           20619.1.20.7
Firefox Nightly            129.0a1       12924.7.4
Google Chrome Canary       128.0.6582.0  6582.0
Comment 2 zalan 2024-07-08 09:57:43 PDT
Created attachment 471845 [details]
[fast-cq]Patch
Comment 3 EWS 2024-07-08 12:34:28 PDT
Committed 280748@main (8a698682da3e): <https://commits.webkit.org/280748@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 471845 [details].
Comment 4 Radar WebKit Bug Importer 2024-07-08 12:35:16 PDT
<rdar://problem/131324238>