OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>There should be a blue square below, and no red.</p> |
| 3 <div id="multicol" style="columns:2; column-gap:80px; width:100px; background:re
d;"> |
| 4 <div id="changeMe" style="float:left;"> |
| 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 = 'none'; |
| 18 assert_equals(multicol.offsetHeight, 100); |
| 19 assert_equals(spanner.offsetWidth, 100); |
| 20 }, "Turn a spanner candidate's parent from float into regular block"); |
| 21 </script> |
OLD | NEW |