Bug 70930

Summary: clear: both does not clear correctly
Product: [Applications] konqueror Reporter: David Cornish <bulk>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: RedHat Enterprise Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Cornish 2003-12-20 19:12:40 UTC
Version:            (using KDE KDE 3.1.4)
Installed from:    RedHat RPMs

There appears to be a CSS rendering problem with cleared 'div's.  An example of my problem is available at : http://www.kenyahome.com/test2.php.  From the source of this page,

<div style="float:left; clear:both; margin: 10px;">
  <img src="images/child1.jpg" alt="Child" />
</div>
<div style="margin: 10px; float:right; clear:both">
  <img src="images/child1.jpg" alt="Child" />
</div>

the second image should appear below and not on the same level as the first, 
due to the "clear:both" in the style tag of the second division.  However, 
this is not observed.  Rather both images are displayed at the same 
horizontal position.  The correct behaviour is observed with the Opera and 
Mozilla web browsers.
Comment 1 Marcus Williams 2004-01-07 18:33:42 UTC
This is a nasty regression (and maybe a duplicate of bug #68068?). If clear doesnt work an awful lot of sites using floated layouts will break.
Comment 2 Stephan Kulow 2004-01-25 17:27:56 UTC

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