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

Unified Diff: LayoutTests/fast/multicol/margin-bottom-and-break-after.html

Issue 850703002: [New Multicolumn] Margins incorrectly accounted for before forced breaks. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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/margin-bottom-and-break-after-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/multicol/margin-bottom-and-break-after.html
diff --git a/LayoutTests/fast/multicol/margin-bottom-and-break-after.html b/LayoutTests/fast/multicol/margin-bottom-and-break-after.html
new file mode 100644
index 0000000000000000000000000000000000000000..1f8a2c9e2859f3521df3d26d35b355bf302fdc39
--- /dev/null
+++ b/LayoutTests/fast/multicol/margin-bottom-and-break-after.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<p>A block that follows a block with -webkit-column-break-after:always; should be positioned at the
+ *top* of the *next* column. Margins may need to be ignored to achieve this.</p>
+<div id="mc" style="-webkit-column-count:2; column-fill:auto; width:100px; height:200px;">
+ <div style="height:150px; margin-bottom:150px; -webkit-column-break-after:always;"></div>
+ <div id="child" style="height:100px;"></div>
+</div>
+<div id="console"></div>
+<script src="../../resources/js-test.js"></script>
+<script>
+ var mc = document.getElementById('mc');
+ var child = document.getElementById('child');
+ shouldBe("child.offsetLeft + child.offsetWidth", "mc.offsetLeft + mc.offsetWidth");
+ shouldBe("child.offsetTop", "mc.offsetTop");
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/multicol/margin-bottom-and-break-after-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698