Bug 59137

Summary: floating blocks aren't layout properly when external stylesheets are involved
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Minor CC: hyatt, jamesr, morrita, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac (Intel)   
OS: OS X 10.6   
Attachments:
Description Flags
demo (requires theme.css)
none
theme.css none

Description Ryosuke Niwa 2011-04-21 14:09:07 PDT
When external stylesheet specifies that a block floats and the top margin of a block below the floated block, the floated object is layout incorrectly. When the external stylesheet is cached or declared within the same document, the problem doesn't reproduce.
Comment 1 Ryosuke Niwa 2011-04-21 14:09:30 PDT
Created attachment 90596 [details]
demo (requires theme.css)
Comment 2 Ryosuke Niwa 2011-04-21 14:09:48 PDT
Created attachment 90597 [details]
theme.css
Comment 3 Ryosuke Niwa 2011-04-21 14:10:49 PDT
To reproduce the bug, download the attached files and put them in a same directory, and open floating-bug.html.

This bug only reproduces on Apple's Mac and Chromium Mac ports.