OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Changing from paged-x to paged-y</title> | 4 <title>Changing from paged-x to paged-y</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.body.style.overflow = 'paged-y'; | 8 document.body.style.overflow = 'paged-y'; |
9 document.body.style.overflow = '-webkit-paged-y'; | 9 document.body.style.overflow = '-webkit-paged-y'; |
10 } | 10 } |
11 </script> | 11 </script> |
12 </head> | 12 </head> |
13 <body style="overflow:-webkit-paged-x; overflow:paged-x;" onload="test()"> | 13 <body style="overflow:-webkit-paged-x; overflow:paged-x;" onload="test()"> |
14 <div style="height:150vh;"> | 14 <div style="height:150vh;"> |
15 There should be a vertical scrollbar on this page. | 15 There should be a vertical scrollbar on this page. |
16 </div> | 16 </div> |
17 </body> | 17 </body> |
18 </html> | 18 </html> |
OLD | NEW |