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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/first-line-in-float-with-margin.html

Issue 1462913002: A line that ends up naturally in the next column may need to propagate a strut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Prepositionize responsibly. Created 5 years, 1 month 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: third_party/WebKit/LayoutTests/fast/multicol/first-line-in-float-with-margin.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/first-line-in-float-with-margin.html b/third_party/WebKit/LayoutTests/fast/multicol/first-line-in-float-with-margin.html
new file mode 100644
index 0000000000000000000000000000000000000000..0d50b11aeb6a0972811bddd762e90a36ebf7e6bb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/first-line-in-float-with-margin.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<script src="../../resources/check-layout.js"></script>
+<p>When its first line needs a column break, test that we push the entire float to the next column.</p>
+<p>There should be a blue square below. It should be right-bottom aligned inside a cyan box.</p>
+<div id="multicol" style="position:relative; -webkit-columns:2; -webkit-column-gap:0; column-fill:auto; width:80px; height:80px; line-height:40px; background:cyan;">
+ <div style="height:40px;"></div>
+ <div data-offset-y="40" data-offset-x="40" style="float:left; width:100%; margin-top:40px; background:blue;"><br></div>
+</div>
+<script>
+ checkLayout("#multicol");
+</script>

Powered by Google App Engine
This is Rietveld 408576698