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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/unforced-break-after-complex-margin-collapsing.html

Issue 1375673004: Keep block pagination struts after layout, and store them before any type of break. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 5 years, 2 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: third_party/WebKit/LayoutTests/fast/multicol/unforced-break-after-complex-margin-collapsing.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/unforced-break-after-complex-margin-collapsing.html b/third_party/WebKit/LayoutTests/fast/multicol/unforced-break-after-complex-margin-collapsing.html
new file mode 100644
index 0000000000000000000000000000000000000000..9130bf7d259d65d9cfd1296650e359a342338fb6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/unforced-break-after-complex-margin-collapsing.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../resources/check-layout.js"></script>
+<p>Given a parent block with an empty collapse-through child followed by a child with a top margin,
+ check that the parent block is pulled downwards by that margin, to the exact top of the next
+ column. The collapse-through child prevents us from correctly estimating the logical top of the
+ parent initially.</p>
+<p>Below there should be a yellow box. Inside it there should be a top-center aligned green box.</p>
+<div id="test" style="position:relative; -webkit-columns:3; -webkit-column-gap:10px; column-fill:auto; width:620px; height:90px; line-height:20px; background:yellow;">
+ <br>
+ <br>
+ <br>
+ <br>
+ <div style="background:red;" data-offset-x="210" data-offset-y="0" data-expected-height="80">
+ <div data-offset-x="210" data-offset-y="0" data-expected-height="0"></div>
+ <div data-offset-x="210" data-offset-y="0" data-expected-height="80" style="margin-top:20px; background:green;">
+ <br><br><br><br>
+ </div>
+ </div>
+</div>
+<script>
+ checkLayout("#test");
+</script>

Powered by Google App Engine
This is Rietveld 408576698