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

Unified Diff: LayoutTests/fast/multicol/float-moved-by-child-line-and-unbreakable.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
« no previous file with comments | « no previous file | LayoutTests/fast/multicol/float-moved-by-child-line-and-unbreakable-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/multicol/float-moved-by-child-line-and-unbreakable.html
diff --git a/LayoutTests/fast/multicol/float-moved-by-child-line-and-unbreakable.html b/LayoutTests/fast/multicol/float-moved-by-child-line-and-unbreakable.html
new file mode 100644
index 0000000000000000000000000000000000000000..51c964955fbf02ab67756d9506f110a9c4c8c1db
--- /dev/null
+++ b/LayoutTests/fast/multicol/float-moved-by-child-line-and-unbreakable.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../resources/check-layout.js"></script>
+<p>Test that a float that needs to be pushed to next column both because it's unbreakable and its
+ first line doesn't fit in the previous column, ends up at the exact top of the next 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="height:40px; background:blue;"></div>
+ <br><br>
+ <div data-offset-y="0" style="float:left; width:100%; -webkit-column-break-inside:avoid; background:blue;">
+ <br><br>
+ </div>
+</div>
+<script>
+ checkLayout("#test");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/multicol/float-moved-by-child-line-and-unbreakable-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698