OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 #inner > div { break-inside:avoid; } |
| 4 </style> |
| 5 <p>The word "PASS" should be seen 7 times below.</p> |
| 6 <div id="container" style="position:relative; overflow:hidden; line-height:20px;
"> |
| 7 <div id="multicol" style="float:left; columns:3; column-fill:auto; height:70
px; text-align:right;"> |
| 8 <div style="width:6em;"> |
| 9 <div id="inner"> |
| 10 <div id="child1">PA</div> |
| 11 <div id="child2">PA</div> |
| 12 <div id="child3">PA</div> |
| 13 <div id="child4">PA</div> |
| 14 <div id="child5">PA</div> |
| 15 <div id="child6">PA</div> |
| 16 <div id="child7">PA</div> |
| 17 </div> |
| 18 </div> |
| 19 </div> |
| 20 <div style="float:left;"> |
| 21 SS<br> |
| 22 SS<br> |
| 23 SS<br> |
| 24 SS<br> |
| 25 SS<br> |
| 26 SS<br> |
| 27 SS<br> |
| 28 </div> |
| 29 </div> |
| 30 <script src="../resources/testharness.js"></script> |
| 31 <script src="../resources/testharnessreport.js"></script> |
| 32 <script> |
| 33 test(() => { |
| 34 // Make the content unfragmented. That should clear all pagination |
| 35 // struts that were needed while we were fragmented. |
| 36 document.body.offsetTop; |
| 37 document.getElementById("multicol").style.columns = "auto"; |
| 38 |
| 39 assert_equals(document.getElementById("child1").offsetTop, 0); |
| 40 assert_equals(document.getElementById("child2").offsetTop, 20); |
| 41 assert_equals(document.getElementById("child3").offsetTop, 40); |
| 42 assert_equals(document.getElementById("child4").offsetTop, 60); |
| 43 assert_equals(document.getElementById("child5").offsetTop, 80); |
| 44 assert_equals(document.getElementById("child6").offsetTop, 100); |
| 45 assert_equals(document.getElementById("child7").offsetTop, 120); |
| 46 }, "No pagination struts should be left behind."); |
| 47 </script> |
OLD | NEW |