wpt / css / css-image-animation / image-animation-video-poster-paused-normal-mixed.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-image-animation/image-animation-video-poster-paused-normal-mixed.html

<!DOCTYPE html>
<html class="reftest-wait">
<title>paused, stopped and normal image animation mixed for video poster</title>
<link rel="help" href="https://drafts.csswg.org/css-image-animation-1/">
<meta charset="utf-8" />
<link rel="match" href="image-animation-video-poster-paused-normal-mixed-ref.html" />
<script src="/common/reftest-wait.js"></script>
<script src="resources/image-animation-utils.js"></script>
<script>
  waitForFrameTime(300).then(() => {
    for (const video of document.querySelectorAll('video'))
      video.style.imageAnimation = 'paused';
    requestAnimationFrame(() => {
      requestAnimationFrame(() => {
        takeScreenshot();
      });
    });
  });
</script>

<style>
  video {
    width:20px;
    height:10px;
    object-fit:fill;
  }
</style>

<video poster="../../images/anim-gr.gif" style="image-animation: paused;"></video>
<video poster="../../images/anim-gr.gif"></video>
<video poster="../../images/anim-gr.gif" style="image-animation: paused;"></video>
<video poster="../../images/anim-gr.gif" style="image-animation: normal;"></video>
<video poster="../../images/anim-gr.gif" style="image-animation: stopped;"></video>

</html>

/css/css-image-animation/image-animation-video-poster-paused-normal-mixed-ref.html

<!DOCTYPE html>
<style>
  video {
    width:20px;
    height:10px;
    object-fit:fill;
  }
</style>
<video poster="../../images/green.png"></video>
<video poster="../../images/red.png"></video>
<video poster="../../images/green.png"></video>
<video poster="../../images/red.png"></video>
<video poster="../../images/green.png"></video>