tor-browser

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

capture-old-state-error-flag-cleanup.html (982B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4    <title>"Captured in view transition" flag should be cleaned up on error</title>
      5    <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
      6    <link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/#capture-old-state-algorithm">
      7    <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      8    <style>
      9        #a,
     10        #b {
     11            width: 100px;
     12            height: 50px;
     13            background-color: green;
     14            view-transition-name: foo;
     15        }
     16    </style>
     17 </head>
     18 <body>
     19    <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     20    <div id="a"></div>
     21    <div id="b"></div>
     22    <script src="/common/reftest-wait.js"></script>
     23    <script>
     24        failIfNot(document.startViewTransition, "Missing document.startViewTransition");
     25 
     26        document.startViewTransition().finished.then(takeScreenshot);
     27    </script>
     28 </body>
     29 </html>