tor-browser

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

vtt_reflow_display-ref.html (670B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <link rel="stylesheet" href="vtt_reflow_display.css">
      4 <body>
      5 <div class="video-player">
      6  <div class="video-layer">
      7    <video id="v1" autoplay controls></video>
      8  </div>
      9 </div>
     10 <script>
     11 /**
     12 * Simply play and pause a video without any cues.
     13 */
     14 async function testDisplayCueDuringFrequentReflowRef() {
     15  const video = document.getElementById("v1");
     16  video.src = "white.webm";
     17  video.onplay = _ => {
     18    video.onplay = null;
     19    video.pause();
     20    document.documentElement.removeAttribute('class');
     21  }
     22 };
     23 
     24 window.addEventListener("MozReftestInvalidate",
     25                        testDisplayCueDuringFrequentReflowRef);
     26 </script>
     27 </body>
     28 </html>