Bug 78948 - Floated element is overwritten by inline elements.
Summary: Floated element is overwritten by inline elements.
Status: RESOLVED DUPLICATE of bug 53239
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-17 16:48 PST by mbundy
Modified: 2012-04-17 13:27 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mbundy 2012-02-17 16:48:40 PST
Simple example:

Chrome and Safari - The paragraph content overwrites the top of 2nd floated element.

Firefox, Opera and IE do not.

<div style="display:block; margin:0; margin-left:auto; margin-right:auto; padding:0; width:300px; height:250px; border:1px solid blue; font-family:Arial; font-size:9pt;">
	<div style="display:block; float:right; margin:0; padding:0; width:10px; height:150px; background-color:red;"></div>
	<div style="display:block; float:right; clear:right; margin:0; padding:0; width:150px; height:100px; background-color:yellow;"></div>
	<p style="padding:0; margin:0; margin-top:5px;">blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>
	<p style="padding:0; margin:0; margin-top:5px;">blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>
	<p style="padding:0; margin:0; margin-top:5px;">blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>
	<p style="padding:0; margin:0; margin-top:5px;">blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>
	<p style="padding:0; margin:0; margin-top:5px;">blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.</p>
</div>
Comment 1 Shane Stephens 2012-03-21 21:02:00 PDT
Working for me in Chrome 17.0.963.79,  Chrome 19.0.1076.0 canary, Safari Version 5.1.3 (7534.53.10), WebKit nightly (r110761), all on Mac OS X Version 10.7.3.
Comment 2 Shane Stephens 2012-03-21 22:01:55 PDT
Apparently this is an issue on Windows 7, however.
Comment 3 Shezan Baig 2012-04-17 13:26:37 PDT
This is actually an issue on all platforms, but the test data may need to be modified slightly on other platforms to account for different fonts etc.  It seems to be a duplicate of bug 53239
Comment 4 Shezan Baig 2012-04-17 13:27:03 PDT

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