1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/scrolling/layer-change-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,18 @@ 1.4 +<!DOCTYPE html> 1.5 +<html class="reftest-wait"> 1.6 +<head> 1.7 +<body onload="start()"> 1.8 +<iframe id="i" style="margin-top:100px; width:100%; height:600px;" src="layer-change-1-frame.html"></iframe> 1.9 +<script> 1.10 +var subw = document.getElementById("i").contentWindow; 1.11 +function doTest() { 1.12 + subw.scrollTo(0,0); 1.13 + document.documentElement.removeAttribute("class"); 1.14 +} 1.15 +function start() { 1.16 + subw.scrollTo(0,2000); 1.17 +} 1.18 +window.addEventListener("MozReftestInvalidate", doTest, false); 1.19 +</script> 1.20 +</body> 1.21 +</html>