OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .multicol { position:relative; margin-bottom:1px; columns:5; width:20px; col
umn-gap:0; column-fill:auto; height:0; background:red; } |
| 4 .multicol > div { height:1px; background:blue; } |
| 5 </style> |
| 6 <p>There should be a small blue square below.</p> |
| 7 <div style="display:flow-root; position:relative;"> |
| 8 <div class="multicol"><div></div><div></div></div> |
| 9 <div class="multicol"><div></div><div></div></div> |
| 10 <div class="multicol"><div></div><div></div></div> |
| 11 <div class="multicol"><div></div><div></div></div> |
| 12 <div class="multicol"><div></div><div></div></div> |
| 13 <div class="multicol"><div></div><div></div></div> |
| 14 <div class="multicol"><div></div><div></div></div> |
| 15 <div class="multicol"><div></div><div></div></div> |
| 16 </div> |
| 17 <script src="../../resources/testharness.js"></script> |
| 18 <script src="../../resources/testharnessreport.js"></script> |
| 19 <script> |
| 20 test(() => { |
| 21 var multicols = document.getElementsByClassName("multicol"); |
| 22 var offset = 0; |
| 23 for (var i = 0; i < multicols.length; i++) { |
| 24 var multicol = multicols[i]; |
| 25 assert_equals(multicol.firstChild.offsetLeft, 0); |
| 26 assert_equals(multicol.firstChild.nextSibling.offsetLeft, 4); |
| 27 assert_equals(multicol.offsetTop, offset); |
| 28 offset++; |
| 29 } |
| 30 }, "Zero-height multicol should force 1px tall columns"); |
| 31 </script> |
OLD | NEW |