OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>There should be two blue squares below.</p> |
| 3 <div id="multicol" style="columns:2; column-gap:50px; width:150px;"> |
| 4 <div id="changeMe" style="width:50px;"> |
| 5 <div id="spanner" style="column-span:all; height:100px; background:blue;
"></div> |
| 6 </div> |
| 7 </div> |
| 8 <script src="../../../resources/testharness.js"></script> |
| 9 <script src="../../../resources/testharnessreport.js"></script> |
| 10 <script> |
| 11 test(() => { |
| 12 var multicol = document.getElementById("multicol"); |
| 13 var spanner = document.getElementById("spanner"); |
| 14 var changeMe = document.getElementById('changeMe'); |
| 15 document.documentElement.offsetTop; |
| 16 |
| 17 changeMe.style.cssFloat = 'left'; |
| 18 assert_equals(multicol.offsetHeight, 50); |
| 19 assert_equals(spanner.offsetWidth, 50); |
| 20 }, "Turn a spanner's parent from regular block into float"); |
| 21 </script> |
OLD | NEW |