tor-browser

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

no-white-flash-before-activation.html (972B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4    <title>View Transitions: No white flash should be visible during the duration of the update callback</title>
      5    <link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/#ref-for-captured-in-a-view-transition">
      6    <link rel="match" href="no-white-flash-before-activation-ref.html">
      7    <style>
      8        body {
      9            margin: 0;
     10        }
     11        div {
     12            width: 100vw;
     13            height: 100vh;
     14            background-color: #000;
     15        }
     16    </style>
     17 </head>
     18 <body>
     19    <div></div>
     20    <script src="/common/reftest-wait.js"></script>
     21    <script>
     22        failIfNot(document.startViewTransition, "Missing document.startViewTransition");
     23        addEventListener("load", () => {
     24            document.startViewTransition(() => {
     25                requestAnimationFrame(takeScreenshot);
     26                return new Promise(() => {});
     27            });
     28        });
     29    </script>
     30 </body>
     31 </html>