1544948-1.html (871B)
1 <html class="reftest-wait"> 2 <head> 3 <style> 4 div { 5 width:10px; 6 height:10px; 7 background-color:green; 8 display: inline-block; 9 position: relative; 10 } 11 #wrapper { 12 opacity: 0.5; 13 width: 200px; 14 height: 200px; 15 background-color: transparent; 16 } 17 18 #first { 19 z-index: 1; 20 } 21 </style> 22 <script> 23 function doTest2() { 24 var elem = document.getElementById("second"); 25 elem.style.backgroundColor = "blue"; 26 } 27 28 function doTest() { 29 var elem = document.getElementById("third"); 30 elem.parentNode.removeChild(elem); 31 document.documentElement.removeAttribute("class"); 32 requestAnimationFrame(doTest2); 33 } 34 35 window.addEventListener("MozReftestInvalidate", doTest); 36 </script> 37 </head> 38 <body id="body"> 39 <div id="wrapper"> 40 <div id="first" class="reftest-no-display-list"></div><div id="second"></div><div id="third"></div> 41 </div> 42 </body> 43 </html>