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

Unified Diff: third_party/WebKit/LayoutTests/fragmentation/first-child-large-top-margin.html

Issue 2542723002: Margins that start at fragmentainer boundaries should be collapsed away. (Closed)
Patch Set: Back out an unnecessary and potentially harmful change. Created 4 years 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/fragmentation/margin-bottom-at-top-of-fragmentainer.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fragmentation/first-child-large-top-margin.html
diff --git a/third_party/WebKit/LayoutTests/fragmentation/first-child-large-top-margin.html b/third_party/WebKit/LayoutTests/fragmentation/first-child-large-top-margin.html
new file mode 100644
index 0000000000000000000000000000000000000000..391d4c5c7c939c234300ad3af890e1862d87d2c7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fragmentation/first-child-large-top-margin.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<p>There should be a blue square below.</p>
+<div style="position:relative; columns:2; column-gap:0; column-fill:auto; width:200px; height:100px;">
+ <div id="elm" style="margin-top:150px; height:100px; background:blue;"></div>
+</div>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+test(() => {
+ var elm = document.getElementById("elm");
+ assert_equals(elm.offsetLeft, 100);
+ assert_equals(elm.offsetTop, 0);
+}, "Margins should collapse with fragmentainer boundaries");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fragmentation/margin-bottom-at-top-of-fragmentainer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698