Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: LayoutTests/fast/multicol/float-with-margin-moved-by-child-block.html

Issue 1303993007: Floats' margins do not collapse with page or column boundaries. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/multicol/float-with-margin-moved-by-child-block.html
diff --git a/LayoutTests/fast/multicol/float-with-margin-moved-by-child-block.html b/LayoutTests/fast/multicol/float-with-margin-moved-by-child-block.html
new file mode 100644
index 0000000000000000000000000000000000000000..7bb314bdf5d9d3866cf6e845521acb193c9bc776
--- /dev/null
+++ b/LayoutTests/fast/multicol/float-with-margin-moved-by-child-block.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<script src="../../resources/check-layout.js"></script>
+<p>Test that space is reserved for the top margin of a float that is pushed to the next column. It
+ gets pushed to next column because its child block wants to move. The child block wants to move
+ because its first line cannot fit at its designated position in the first column.</p>
+<p>There should be a blue rectangle below.</p>
+<div id="test" style="position:relative; -webkit-columns:3; -webkit-column-gap:0; column-fill:auto; width:150px; height:90px; line-height:20px;">
+ <div style="margin-top:5px; margin-bottom:15px; height:40px; background:blue;"></div>
+ <br>
+ <div data-offset-y="5" style="float:left; width:100%; margin-top:5px; background:blue;">
+ <div data-offset-y="5">
+ <br><br>
+ </div>
+ </div>
+</div>
+<script>
+ checkLayout("#test");
+</script>

Powered by Google App Engine
This is Rietveld 408576698