OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>There should be a green square below, and no red.</p> |
| 3 <div style="columns:4; column-gap:0; width:100px; height:150px; orphans:1; widow
s:1; line-height:100px;"> |
| 4 <div id="parent" style="background:red;"> |
| 5 <div id="child1" style="background:green;"><br></div> |
| 6 <div id="child2" style="background:green;"> |
| 7 <br> |
| 8 <br> |
| 9 <br> |
| 10 </div> |
| 11 </div> |
| 12 </div> |
| 13 <script src="../../resources/testharness.js"></script> |
| 14 <script src="../../resources/testharnessreport.js"></script> |
| 15 <script> |
| 16 test(() => { |
| 17 var parent = document.getElementById("parent"); |
| 18 var child1 = document.getElementById("child1"); |
| 19 var child2 = document.getElementById("child2"); |
| 20 assert_equals(parent.offsetHeight, 400); |
| 21 assert_equals(child1.offsetHeight, 100); |
| 22 assert_equals(child2.offsetHeight, 300); |
| 23 }, "Balance, non-auto height, unused space"); |
| 24 </script> |
OLD | NEW |