OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>There should be a hotpink square in the bottom right corner of a black square
.</p> |
| 3 <div style="position:relative; columns:2; column-gap:0; column-fill:auto; width:
100px; height:100px; background:black;"> |
| 4 <div style="height:60px;"></div> |
| 5 <div id="elm" style="float:left; margin-top:50px; width:100%; height:50px; b
ackground:hotpink;"></div> |
| 6 </div> |
| 7 <script src="../resources/testharness.js"></script> |
| 8 <script src="../resources/testharnessreport.js"></script> |
| 9 <script> |
| 10 test(() => { |
| 11 var elm = document.getElementById("elm"); |
| 12 assert_equals(elm.offsetTop, 50); |
| 13 assert_equals(elm.offsetLeft, 50); |
| 14 }, "Should not split the top margin of a float."); |
| 15 </script> |
OLD | NEW |