OLD | NEW |
(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> |
OLD | NEW |