1420480-1.html (924B)
1 <html class="reftest-wait"> 2 <head> 3 <style> 4 div { 5 width: 200px; 6 height: 200px; 7 background-color: blue; 8 opacity: 0.95; 9 position: absolute; 10 } 11 #first { 12 display: none; 13 } 14 #second { 15 width: 600px; 16 height: 800px; 17 display: none; 18 background-color: green; 19 } 20 </style> 21 </head> 22 <body> 23 <div id="first"> 24 <div id="second"></div> 25 </div> 26 <div style="z-index:-2; top: 220px;"></div> 27 <div style="top: 440px;"></div> 28 29 <script> 30 function doTest2() { 31 document.getElementById("second").style.display = "block"; 32 document.documentElement.removeAttribute("class"); 33 } 34 35 function doTest() { 36 document.getElementById("first").style.display = "block"; 37 setTimeout(doTest2, 500); 38 } 39 document.addEventListener("MozReftestInvalidate", doTest); 40 </script> 41 </body> 42 </html>