retained-dl-style-change-stacking-context-4.html (651B)
1 <html class="reftest-wait"> 2 <head> 3 <style> 4 body { 5 margin: 0px; 6 } 7 div { 8 width:100px; 9 height:100px; 10 display: inline-block; 11 position:absolute; 12 } 13 </style> 14 </head> 15 <body> 16 <div style="position:fixed;" class="reftest-display-list"> 17 <div style="background-color:green;" class="reftest-no-display-list"></div> 18 <div id="second" style="background-color:red; top: 110px;"></div> 19 </div> 20 </body> 21 <script> 22 function doTest() { 23 document.getElementById("second").style.backgroundColor = "green"; 24 document.documentElement.removeAttribute("class"); 25 } 26 27 window.addEventListener("MozReftestInvalidate", doTest); 28 </script> 29 </html>