599113-1.html (980B)
1 <html class="reftest-wait"> 2 <head> 3 <script> 4 function doTest() { 5 window.scrollTo(0,101); 6 // make sure we serve the invalidate the scroll caused, so the invalidate 7 // doesn't get served later in our test (which would just make us pass when 8 // we should actually fail) 9 setTimeout("continueTest();", 0); 10 } 11 function continueTest() { 12 document.getElementById("x").style.background = "blue"; 13 // make sure the invalidate for that change happens now, while we are 14 // scrolled down 15 document.documentElement.offsetLeft; 16 setTimeout("finishTest();", 0); 17 } 18 function finishTest() { 19 window.scrollTo(0,0); 20 document.documentElement.removeAttribute('class'); 21 } 22 document.addEventListener("MozReftestInvalidate", doTest); 23 </script> 24 </head> 25 <body style="overflow: hidden;"> 26 <div id="x" style="position: absolute; left: 0px; top: 0px; width: 100px; height: 100px; background: red;"></div> 27 <div style="height: 10000px;"></div> 28 </body> 29 </html>