| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Dynamically set paged overflow on a DIV element</title> | |
| <script> | |
| function test() { | |
| document.body.offsetTop; // trigger layout | |
| document.getElementById('elm').style.overflow = '-webkit-paged-x'; | |
| document.getElementById('elm').style.overflow = 'paged-x'; | |
| } | |
| </script> | |
| </head> | |
| <body onload="test()"> | |
| <div id="elm" style="width:30em; height:10em;"> | |
| There should be no text below. | |
| <div style="margin-top:10em;">FAIL</div> | |
| </div> | |
| </body> | |
| </html> |