OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style>body { overflow:scroll; }</style> |
| 3 <p>There should be a hotpink square in the bottom left corner of a olive rectang
le.</p> |
| 4 <div id="multicol" style="position:relative; columns:2; column-fill:auto; orphan
s:2; widows:2; line-height:20px; height:45px; background:olive;"> |
| 5 <div> |
| 6 <br> |
| 7 </div> |
| 8 <div id="elm" style="float:left; width:40px; background:hotpink;"><br><br></
div> |
| 9 </div> |
| 10 <script src="../resources/testharness.js"></script> |
| 11 <script src="../resources/testharnessreport.js"></script> |
| 12 <script> |
| 13 test(() => { |
| 14 var multicol = document.getElementById("multicol"); |
| 15 var elm = document.getElementById("elm"); |
| 16 assert_equals(elm.offsetTop, 0); |
| 17 assert_equals(elm.offsetHeight, 40); |
| 18 multicol.style.height = "60px"; |
| 19 // Now there's room for the float in the first column |
| 20 assert_equals(elm.offsetTop, 20); |
| 21 assert_equals(elm.offsetHeight, 40); |
| 22 }, "No crash or assertion failure."); |
| 23 </script> |
OLD | NEW |