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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/balance-float-with-margin-top-and-line-after-break.html

Issue 2456003002: Allow pagination struts to push objects below the exact top of the next column. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/balance-float-with-margin-top-and-line-before-break.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/multicol/balance-float-with-margin-top-and-line-after-break.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/balance-float-with-margin-top-and-line-after-break.html b/third_party/WebKit/LayoutTests/fast/multicol/balance-float-with-margin-top-and-line-after-break.html
new file mode 100644
index 0000000000000000000000000000000000000000..7b6d482d2a75d7bce446bb505b113c4ead24bd02
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/balance-float-with-margin-top-and-line-after-break.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<p>There should be a blue rectangle centered at the bottom of a brown rectangle.</p>
+<div id="house" style="position:relative; columns:3; column-gap:0; line-height:20px; width:120px; orphans:1; widows:1; background:brown;">
+ <br>
+ <br>
+ <br>
+ <div id="doorTop" style="float:left; width:100%; margin-top:20px; background:blue;"><br></div>
+ <div style="clear:both;">
+ <div id="doorBottom" style="background:blue;"><br></div>
+ <br>
+ <br>
+ </div>
+</div>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+test(() => {
+ var house = document.getElementById("house");
+ var doorTop = document.getElementById("doorTop");
+ var doorBottom = document.getElementById("doorBottom");
+ assert_equals(house.offsetHeight, 60);
+ assert_equals(doorTop.offsetTop, 20);
+ assert_equals(doorTop.offsetHeight, 20);
+ assert_equals(doorBottom.offsetTop, 40);
+ assert_equals(doorBottom.offsetHeight, 20);
+}, "Float that should be pushed to the top of the second column.");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/balance-float-with-margin-top-and-line-before-break.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698