NEW 266314
offsetLeft - Abs-positioned objects should move with inline rel-positioned containers when the latter change width
https://bugs.webkit.org/show_bug.cgi?id=266314
Summary offsetLeft - Abs-positioned objects should move with inline rel-positioned co...
Ahmad Saleem
Reported 2023-12-12 17:14:17 PST
Hi Team, While going through Blink's commit, I came across another failing test case: Test Case: https://jsfiddle.net/3oeLbauz/1/show ^ Fails in STP184 / WebKit ToT. Passes above in Chrome Canary 122 and Firefox Nightly 122. Blink Commit: https://src.chromium.org/viewvc/blink?view=revision&revision=179335 Merging above 1-1 still does not fix the bug. Just wanted to raise so we can fix it. Thanks!
Attachments
testcase (83.68 KB, text/html)
2023-12-14 18:22 PST, Karl Dubost
no flags
rendering in safari, firefox, chrome (82.05 KB, image/png)
2023-12-14 18:23 PST, Karl Dubost
no flags
Karl Dubost
Comment 1 2023-12-14 18:20:49 PST
OM JSFIDDLE The difference is happening with the value of offsetLeft the test is checking: expectedOffset: 118 var totalLeft = node.clientLeft + node.offsetLeft; Safari node.clientLeft: 4 node.offsetLeft: 54 Firefox node.clientLeft: 4 node.offsetLeft: 114 but the test is probably subtle because if I try to isolate it in its own file. I see different results in between Firefox and Nightly. Let's upload the testcase
Karl Dubost
Comment 2 2023-12-14 18:22:08 PST
Created attachment 469052 [details] testcase Safari clientLeft: 4 offsetLeft: 54 Firefox clientLeft: 4 offsetLeft: 124 Chrome clientLeft: 4 offsetLeft: 114
Karl Dubost
Comment 3 2023-12-14 18:23:31 PST
Created attachment 469053 [details] rendering in safari, firefox, chrome
Radar WebKit Bug Importer
Comment 5 2023-12-14 18:28:31 PST
Ahmad Saleem
Comment 6 2024-05-24 04:47:10 PDT
Note You need to log in before you can comment on or make changes to this bug.