gecko-dev/layout/reftests/floats/478834-1.html
L. David Baron dc94df9c46 Bug 478834 - Record that we need to look for clearance if we encounter a block that might need to be pushed down for intersecting floats (i.e., one that establishes a BFC). r=roc
Without this change, nsBlockFrame::ReflowBlockFrame will fail to have
mayNeedRetry true, which means that it won't set
blockHTMLRS.mDiscoveredClearance, which means that on a descendant
replaced block we will fail to fall into any of the cases that call
ClearFloats.  This change will cause us to hit the first ClearFloats
call and discover the need for clearance.

I tested locally that the new reftest fails without the patch and passes
with the patch.
2015-07-27 20:23:56 -07:00

27 lines
734 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Bug 478834 Testcase</title>
<style>
html { overflow: hidden }
</style>
</head>
<body>
<div style="background:teal; width: 500px">
<div style="background:yellow; float:left; width: 100px; height: 50px;"></div>
<div style="margin-right: 150px">
<table width="100%" style="background: fuchsia">
<tr><td>
x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x x x x x
</td></tr>
</table>
</div>
</div>
</body>
</html>