OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 <style>body { margin:8px; }</style> | |
5 <div style="margin:100px; columns:2; column-gap:20px; width:420px;"> | |
6 <div id="empty"></div> | |
7 </div> | |
8 <script> | |
9 test(function() { | |
10 var rects = document.getElementById("empty").getClientRects(); | |
11 assert_equals(rects.length, 1); | |
12 assert_equals(rects[0].left, 108); | |
13 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.
| |
14 assert_equals(rects[0].right, 308); | |
15 assert_equals(rects[0].bottom, 100); | |
16 }, "Zero-height block in otherwise empty multicol"); | |
17 </script> | |
OLD | NEW |