<html> <head> <style type="text/css"> p { font-size: xx-large; width: 1000px; height: 100px; } </style> <script type="text/javascript"> function runTest() { if (!window.testRunner) return; testRunner.dumpAsText(); var lines = [ 'line<br>' ]; for (var i = 0; i < 7; i++) lines = lines.concat(lines); document.body.innerHTML = '<p>' + lines.join('') + '</p>'; document.body.textContent = 'When printing, layout overflow must be cleared after current document size is queried: ' + (internals.numberOfPages() > 1 ? 'PASS' : 'FAIL'); } </script> <head> <body onload="runTest()"> This test needs window.testRunner to run. </body> </html>