844178.html (758B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"><head> 3 <meta charset="utf-8"> 4 <title>Testcase for bug 844178</title> 5 <style type="text/css"> 6 7 html,body { 8 color:black; background-color:white; font-size:16px; padding:0; margin:0; 9 } 10 11 body { 12 position: fixed; 13 right: 0px; 14 top: 100px; 15 width: 100px; 16 height: 10px; 17 margin:0; 18 padding:0; 19 } 20 21 :root { overflow:scroll; } 22 23 span { 24 background:lime; 25 display:inline-block; 26 width:100px; 27 } 28 29 </style> 30 <script> 31 function doTest() { 32 document.body.style.right='5px'; 33 document.body.offsetHeight; 34 document.documentElement.removeAttribute('class'); 35 } 36 document.addEventListener("MozReftestInvalidate", doTest); 37 </script> 38 </head> 39 <body><span>Hello</span></body> 40 </html>