Bug 124723

Summary: Margins & Float positions calculated incorrectly for replaced elements
Product: WebKit Reporter: Divya Manian <divya>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, bfulgham, robert, webkit-bug-importer, zoltan
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://codepen.io/chrisbank/pen/HoLhk

Description Divya Manian 2013-11-21 10:14:38 PST
Margins on replaced elements are being incorrectly applied. Note that the checkbox has margin applied from its container's far left instead of being adjacent to the immediately floated element (of bgcolor indianred). Firefox does this correctly.
Comment 1 Brent Fulgham 2022-07-13 16:27:20 PDT
Firefox and Chrome both handle the checkbox case properly, Safari does not.
Comment 2 Radar WebKit Bug Importer 2022-07-13 16:27:30 PDT
<rdar://problem/96980226>
Comment 3 Ahmad Saleem 2024-06-27 15:05:32 PDT
It is fixed - I remember fixing it here - https://github.com/WebKit/WebKit/commit/7adc3dd2a2260a3dd133dbc2245a9be5b8b78772

*** This bug has been marked as a duplicate of bug 264770 ***