wpt / css / css-image-animation / image-animation-img-stopped.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-img-stopped.html

<!DOCTYPE html>
<html class="reftest-wait">
<title>stopping animated image for img</title>
<link rel="help" href="https://drafts.csswg.org/css-image-animation-1/">
<meta charset="utf-8" />
<link rel="match" href="image-animation-img-stopped-ref.html" />
<script src="/common/reftest-wait.js"></script>
<script>
  let count = 0;
  function loaded() {
    count++;
    if (count === document.querySelectorAll('img').length) {
        takeScreenshotDelayed(300);
    }
  }
</script>

<style>
  img {
    image-animation: stopped;
  }
</style>

<img src="../../images/anim-gr.gif" onload="loaded()" />
<img src="../../images/anim-gr.png" onload="loaded()" />

</html>

/css/css-image-animation/image-animation-img-stopped-ref.html

<!DOCTYPE html>
<img src="../../images/green.png">
<img src="../../images/green.png">