tor-browser

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

modal-dialog-in-iframe.html (546B)


      1 <!DOCTYPE html>
      2 <title>Modal dialog inside iframe should not generate box</title>
      3 <link rel=match href="modal-dialog-in-iframe-ref.html">
      4 <link rel=help href="https://github.com/w3c/csswg-drafts/issues/6939">
      5 <link rel=help href="https://fullscreen.spec.whatwg.org/#new-stacking-layer">
      6 <style>
      7 dialog {
      8  background: red;
      9  border-color: red;
     10 }
     11 </style>
     12 <iframe></iframe>
     13 <script>
     14  const iframe = document.querySelector('iframe');
     15  const dialog = document.createElement('dialog');
     16  iframe.appendChild(dialog);
     17  dialog.showModal();
     18 </script>