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> |