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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>body { margin:8px; }</style>
3 <div style="columns:2; width:25px; column-gap:5px; height:10px; column-fill:auto ;">
4 <div id="elm" style="margin-left:-20px; margin-top:-25px; width:4000px; heig ht:40px;"></div>
5 </div>
6 <script src="../../resources/testharness.js"></script>
7 <script src="../../resources/testharnessreport.js"></script>
8 <script>
9 test(() => {
10 var elm = document.getElementById("elm");
11 var rects = elm.getClientRects();
12 assert_equals(rects.length, 2);
13 assert_equals(rects[0].left, -12);
14 assert_equals(rects[0].top, -17);
15 assert_equals(rects[0].right, 3988);
16 assert_equals(rects[0].bottom, 18);
17 assert_equals(rects[1].left, 3);
18 assert_equals(rects[1].top, 8);
19 assert_equals(rects[1].right, 4003);
20 assert_equals(rects[1].bottom, 13);
21 }, "getClientRects should include overflow");
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698