728983-1-ref.html (621B)
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:green; 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.documentElement.removeAttribute("class"); 17 } 18 window.addEventListener("MozReftestInvalidate", doTest); 19 </script> 20 </body> 21 </html>