1018522-1.html (536B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <title>Test that opacity changes on layers make the Compositor repaint the right area</title> 4 5 <style> 6 7 #box { 8 width: 100px; 9 height: 100px; 10 border: 10px solid black; 11 opacity: 1; 12 will-change: opacity; 13 } 14 15 #box.halfTransparent { 16 opacity: 0.5; 17 } 18 19 </style> 20 21 <div id="box"></div> 22 23 <script> 24 25 window.addEventListener("MozReftestInvalidate", function (e) { 26 document.getElementById("box").className = "halfTransparent"; 27 document.documentElement.removeAttribute("class"); 28 }); 29 30 </script>