invalidate-opacity-negative-z-index.html (748B)
1 <!DOCTYPE html> 2 <html class="reftest-wait"> 3 <link rel="help" href="https://www.w3.org/TR/CSS2/visuren.html#propdef-z-index"> 4 <link rel="help" href="https://www.w3.org/TR/compositing-1/"> 5 <link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org"> 6 <link rel="match" href="invalidate-opacity-negative-z-index-ref.html"> 7 8 <div style="position: relative; will-change: transform; z-index: -1"></div> 9 <div id="target" 10 style="width: 50px; height: 50px; background: blue; opacity: 0.2"></div> 11 <script> 12 onload = () => { 13 requestAnimationFrame(() => requestAnimationFrame(() => { 14 target.style.opacity = 0.99; 15 document.documentElement.className = ""; 16 })); 17 }; 18 </script> 19 </html>