tor-browser

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

dialog-in-rtl-iframe.html (1044B)


      1 <!DOCTYPE html>
      2 <html class=reftest-wait>
      3 <head>
      4  <title>View transitions: Dialog element in RTL scrollable iframe</title>
      5  <link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
      6  <link rel="author" href="mailto:bokan@chromium.org">
      7  <link rel="match" href="dialog-in-rtl-iframe-ref.html">
      8  <meta name=fuzzy content="maxDifference=0-80; totalPixels=0-500">
      9  <script src="/common/reftest-wait.js"></script>
     10  <style>
     11    iframe {
     12      width: 50vw;
     13      height: 50vh;
     14    }
     15  </style>
     16  <script>
     17    failIfNot(document.startViewTransition, "Missing document.startViewTransition");
     18 
     19    onload = () => {
     20      requestAnimationFrame(()=>{requestAnimationFrame(()=> {
     21        frames[0].window.startTransition();
     22        frames[0].window.transition.ready.then(() => {
     23          requestAnimationFrame(()=>{requestAnimationFrame(()=> {
     24            takeScreenshot();
     25          })});
     26        });
     27      })});
     28    }
     29  </script>
     30 </head>
     31 
     32 <body>
     33  <iframe src="support/dialog-in-rtl-iframe-child.html">
     34  </iframe>
     35 </body>
     36 </html>