Bug 261982 - offsetWidth of container inside floated container bigger then its container
Summary: offsetWidth of container inside floated container bigger then its container
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: https://jsfiddle.net/stephanb/10LLphz...
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-09-22 16:06 PDT by Ahmad Saleem
Modified: 2023-10-02 18:14 PDT (History)
4 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 2023-09-22 16:06:20 PDT
Hi Team,

While going through Blink's bug, I came across this sub-pixel bug where there is difference of 1px.

Test Case - https://jsfiddle.net/stephanb/10LLphzz/4/show

^ Safari Technology Preview 179 show:

li.outer offsetWidth: 116
a.inner offsetWidth: 117 <---- Not matching

While both Chrome Canary 119 and Firefox Nightly 119 show this:

li.outer offsetWidth: 116
a.inner offsetWidth: 116

________

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

Didn't check whether we can merge or not but I think it is also in 'Legacy Line Layout', so would appreciate Alan's input.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-09-29 16:07:14 PDT
<rdar://problem/116260516>
Comment 2 Ahmad Saleem 2023-10-02 18:14:25 PDT
Might be fixed with bug 261212 but not sure.