OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html style="overflow:-webkit-paged-x; overflow:paged-x;"> | 2 <html style="overflow:-webkit-paged-x; overflow:paged-x;"> |
3 <head> | 3 <head> |
4 <title>Dynamically remove paged overflow on the root element</title> | 4 <title>Dynamically remove paged overflow on the root element</title> |
5 <script> | 5 <script> |
6 function test() { | 6 function test() { |
7 document.body.offsetTop; // trigger layout | 7 document.body.offsetTop; // trigger layout |
8 document.documentElement.style.overflow = 'auto'; | 8 document.documentElement.style.overflow = 'auto'; |
9 } | 9 } |
10 </script> | 10 </script> |
11 </head> | 11 </head> |
12 <body onload="test()"> | 12 <body onload="test()"> |
13 <div style="height:150vh;"> | 13 <div style="height:150vh;"> |
14 The word 'PASS' should be seen below. | 14 The word 'PASS' should be seen below. |
15 <div style="-webkit-column-break-before:always;">PASS</div> | 15 <div style="-webkit-column-break-before:always;">PASS</div> |
16 </div> | 16 </div> |
17 </body> | 17 </body> |
18 </html> | 18 </html> |
OLD | NEW |