Index: third_party/WebKit/LayoutTests/fast/multicol/client-rect-overflowing-multicol-2-columns.html |
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/client-rect-overflowing-multicol-2-columns.html b/third_party/WebKit/LayoutTests/fast/multicol/client-rect-overflowing-multicol-2-columns.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..67dd28024cfccc58f550efd8abd554aa0d7758d2 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/multicol/client-rect-overflowing-multicol-2-columns.html |
@@ -0,0 +1,22 @@ |
+<!DOCTYPE html> |
+<style>body { margin:8px; }</style> |
+<div style="columns:2; width:25px; column-gap:5px; height:10px; column-fill:auto;"> |
+ <div id="elm" style="margin-left:-20px; margin-top:-25px; width:4000px; height:40px;"></div> |
+</div> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+ test(() => { |
+ var elm = document.getElementById("elm"); |
+ var rects = elm.getClientRects(); |
+ assert_equals(rects.length, 2); |
+ assert_equals(rects[0].left, -12); |
+ assert_equals(rects[0].top, -17); |
+ assert_equals(rects[0].right, 3988); |
+ assert_equals(rects[0].bottom, 18); |
+ assert_equals(rects[1].left, 3); |
+ assert_equals(rects[1].top, 8); |
+ assert_equals(rects[1].right, 4003); |
+ assert_equals(rects[1].bottom, 13); |
+ }, "getClientRects should include overflow"); |
+</script> |