OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>The text "Column 1" should be seen in the first column, and "Column 2" |
| 3 should be seen in the second column.</p> |
| 4 <div style="columns:2; column-fill:auto; column-rule:1px dotted; width:20em; hei
ght:130px; column-fill:auto; line-height:50px;"> |
| 5 <div style="height:50px;"></div> |
| 6 <div style="position:relative;"> |
| 7 <div id="elm" style="position:absolute; top:0; left:0;"> |
| 8 <div id="child1">Column 1</div> |
| 9 <div id="child2">Column 2</div> |
| 10 </div> |
| 11 </div> |
| 12 </div> |
| 13 |
| 14 <script src="../resources/testharness.js"></script> |
| 15 <script src="../resources/testharnessreport.js"></script> |
| 16 <script> |
| 17 test(() => { |
| 18 document.body.offsetTop; |
| 19 var elm = document.getElementById("elm"); |
| 20 var child1 = document.getElementById("child1"); |
| 21 var child2 = document.getElementById("child2"); |
| 22 elm.style.fontSize = "2em"; |
| 23 assert_equals(elm.offsetHeight, 130); |
| 24 assert_equals(child1.offsetTop, 0); |
| 25 assert_equals(child2.offsetTop, 80); |
| 26 }, "Pagination struts retained after re-layout of abspos."); |
| 27 </script> |
OLD | NEW |