728983-1.html (692B)
1 <!DOCTYPE HTML> 2 <html class="reftest-wait"> 3 <body> 4 <div style="column-count:2; width:300px; height:100px;"> 5 <div id="o" style="opacity:0.5; width:100px; height:200px; background:lime;"> 6 <div id="d" style="height:50px; width:80px; background:red; padding:2px">Text</div> 7 </div> 8 </div> 9 <script> 10 var o = document.getElementById("o"); 11 var d = document.getElementById("d"); 12 document.body.getBoundingClientRect(); 13 o.style.opacity = 0.8; 14 function doTest() { 15 o.style.opacity = 0.9; 16 document.body.getBoundingClientRect(); 17 d.style.background = "green"; 18 document.documentElement.removeAttribute("class"); 19 } 20 window.addEventListener("MozReftestInvalidate", doTest); 21 </script> 22 </body> 23 </html>