retained-dl-zindex-1.html (563B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <head> 4 <style> 5 div { 6 width: 200px; 7 height: 200px; 8 position:relative; 9 will-change: transform; 10 } 11 #one { 12 top:120px; 13 background-color:blue; 14 } 15 #two { 16 top: -200px; 17 left: 100px; 18 background-color:green; 19 z-index: 1; 20 } 21 </style> 22 </head> 23 <body> 24 <div id="one"></div> 25 <div id="two"></div> 26 </body> 27 <script> 28 function doTest() { 29 document.getElementById("two").style.zIndex = -1; 30 document.documentElement.removeAttribute("class"); 31 } 32 33 window.addEventListener("MozReftestInvalidate", doTest); 34 </script> 35 </html>