layout: Block formatting contexts should contain all their floats.

Improves Pinterest considerably.
This commit is contained in:
Patrick Walton 2014-09-25 16:25:18 -07:00
parent 20f5fdd000
commit 36f3f5a0ab
4 changed files with 24 additions and 2 deletions

View file

@ -147,3 +147,4 @@ flaky_gpu,flaky_linux == acid2_noscroll.html acid2_ref_broken.html
== floated_table_with_margin_a.html floated_table_with_margin_ref.html
== margins_inside_floats_a.html margins_inside_floats_ref.html
== block_formatting_context_complex_a.html block_formatting_context_complex_ref.html
== block_formatting_context_containing_floats_a.html block_formatting_context_containing_floats_ref.html

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<body>
<div style="overflow: hidden; background: green;">
<div style="width: 250px; height: 250px; float: left; background: blue;"></div>
</div>
</body>
</html>

View file

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<body>
<div style="background: green;">
<div style="width: 250px; height: 250px; float: left; background: blue;"></div>
<div style="clear: left;">
</div>
</body>
</html>