OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>There should be a blue rectangle in the bottom left corner of a yellow rectan
gle.</p> |
| 3 <div id="multicol" style="position:relative; width:70px; columns:2; line-height:
20px; background:yellow;"> |
| 4 <br> |
| 5 <br> |
| 6 <div id="elm" style="float:left; width:20px; margin-top:10px; background:blu
e;"><br></div> |
| 7 <div style="clear:both;"> |
| 8 <br> |
| 9 <br> |
| 10 </div> |
| 11 </div> |
| 12 <script src="../../resources/testharness.js"></script> |
| 13 <script src="../../resources/testharnessreport.js"></script> |
| 14 <script> |
| 15 test(() => { |
| 16 var multicol = document.getElementById("multicol"); |
| 17 var elm = document.getElementById("elm"); |
| 18 assert_equals(multicol.offsetHeight, 70); |
| 19 assert_equals(elm.offsetTop, 50); |
| 20 assert_equals(elm.offsetHeight, 20); |
| 21 }, "Float that should fit at the bottom of the first column."); |
| 22 </script> |
OLD | NEW |