OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>There should be green square below, and no red.</p> |
| 3 <div id="multicol" style="position:relative; columns:2; column-fill:auto; height
:60px; line-height:20px;"> |
| 4 <div style="width:40px;"> |
| 5 <div> |
| 6 <div style="height:30px;"></div> |
| 7 <div id="floater" style="float:left; width:100%; orphans:1; widows:1
; background:red;"> |
| 8 <div id="child1" style="background:green;"><br></div> |
| 9 <div id="child2" style="background:green;"><br></div> |
| 10 </div> |
| 11 </div> |
| 12 </div> |
| 13 </div> |
| 14 <div style="clear:both;"></div> |
| 15 <script src="../resources/testharness.js"></script> |
| 16 <script src="../resources/testharnessreport.js"></script> |
| 17 <script> |
| 18 test(() => { |
| 19 var multicol = document.getElementById("multicol"); |
| 20 var floater = document.getElementById("floater"); |
| 21 var child1 = document.getElementById("child1"); |
| 22 var child2 = document.getElementById("child2"); |
| 23 document.body.offsetTop; |
| 24 multicol.style.columns = "auto"; |
| 25 multicol.style.height = "auto"; |
| 26 assert_equals(floater.offsetTop, 30); |
| 27 assert_equals(child1.offsetTop, 30); |
| 28 assert_equals(child1.offsetHeight, 20); |
| 29 assert_equals(child2.offsetTop, 50); |
| 30 assert_equals(child2.offsetHeight, 20); |
| 31 assert_equals(floater.offsetHeight, 40); |
| 32 }, "Become unfragmented with float at fragmentainer boundary"); |
| 33 </script> |
OLD | NEW |