test_bug396367-1.html (1009B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=396367 5 --> 6 <head> 7 <title>Test for Bug 396367</title> 8 <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> 9 <link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/> 10 <script> 11 SimpleTest.waitForExplicitFinish(); 12 13 function finish() { 14 ok(true, "didn't crash"); 15 top.docShell.browsingContext.textZoom = 1; 16 SimpleTest.finish(); 17 } 18 </script> 19 </head> 20 <body> 21 22 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=396367">Mozilla Bug 396367</a> 23 <p id="display"></p> 24 <div id="content" style="display: none"> 25 26 </div> 27 <pre id="test"> 28 29 <input> 30 <script>document.body.setAttribute('style', 'display: -moz-box; overflow: scroll;');</script> 31 <script> 32 top.docShell.browsingContext.textZoom = Math.floor(10 * Math.random()) / 4 + 0.2; 33 document.documentElement.offsetHeight; 34 setTimeout(finish, 0); 35 </script> 36 37 38 </pre> 39 </body> 40 </html>