tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

top-layer-parent-opacity.html (703B)


      1 <!DOCTYPE html>
      2 <html>
      3 <title>Test that parent opacity does not affect top layer elements</title>
      4 <meta charset="utf-8">
      5 <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
      6 <link rel="match" href="green-dialog-and-backdrop.html">
      7 <link rel="help" href="https://fullscreen.spec.whatwg.org/#new-stacking-layer">
      8 <link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=229317">
      9 <style>
     10 body { background: red; }
     11 
     12 #parent {
     13    opacity: 0;
     14 }
     15 
     16 dialog::backdrop,
     17 dialog {
     18    background: green;
     19    outline: none;
     20 }
     21 </style>
     22 <body>
     23 <div id="parent">
     24    <dialog>PASS if no red shows</dialog>
     25 </div>
     26 <script>
     27    document.querySelector("dialog").showModal();
     28 </script>
     29 </body>
     30 </html>