list-and-margin-collapse-001.html (722B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Lists: test the margin collapse of marker</title> 4 <link rel=help href="https://www.w3.org/TR/CSS22/generate.html#lists"> 5 <!-- https://bugs.chromium.org/p/chromium/issues/detail?id=767408 --> 6 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 10 <div id="log"></div> 11 12 <ul id="target" style="margin-top:100px;"> 13 <li> 14 <div style="overflow:hidden; margin-top:100px; height:25px;"><a href="#">xxx</a></div> 15 </li> 16 </ul> 17 18 <script> 19 test(function() { 20 var height = document.getElementById("target").clientHeight; 21 assert_equals(height, 25, "the height of ul should be 25px") 22 }, "list and margin collapse"); 23 </script>