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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/client-rect-overflowing-multicol-2-columns.html

Issue 2750153002: getClientRects() shouldn't clip against any ancestors. (Closed)
Patch Set: Created 3 years, 9 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
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>

Powered by Google App Engine
This is Rietveld 408576698