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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/client-rects-sole-empty-block.html

Issue 2597633002: Even empty block intervals should be associated with a fragmentainer. (Closed)
Patch Set: 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
Index: third_party/WebKit/LayoutTests/fast/multicol/client-rects-sole-empty-block.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/client-rects-sole-empty-block.html b/third_party/WebKit/LayoutTests/fast/multicol/client-rects-sole-empty-block.html
new file mode 100644
index 0000000000000000000000000000000000000000..f074f658385fa93684e8936707d3c654973f296d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/client-rects-sole-empty-block.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>body { margin:8px; }</style>
+<div style="margin:100px; columns:2; column-gap:20px; width:420px;">
+ <div id="empty"></div>
+</div>
+<script>
+ test(function() {
+ var rects = document.getElementById("empty").getClientRects();
+ assert_equals(rects.length, 1);
+ assert_equals(rects[0].left, 108);
+ assert_equals(rects[0].top, 100);
szager1 2016/12/21 23:47:11 Why is 'top' not 108?
mstensho (USE GERRIT) 2016/12/22 08:10:26 Margin collapsing between body and the outer div.
+ assert_equals(rects[0].right, 308);
+ assert_equals(rects[0].bottom, 100);
+ }, "Zero-height block in otherwise empty multicol");
+</script>

Powered by Google App Engine
This is Rietveld 408576698