testing/web-platform/tests/css/css-animations/jump-start-animation-before-phase.html
author dadaa <daisuke.akatsuka@birchill.co.jp>
Wed, 09 Jul 2025 04:53:58 +0000 (16 hours ago)
changeset 795836 a5500d271fe3a1fefb4d81d96fc4abd00d9eade7
parent 747443 86b1433a2f9b87c727145312104bfa402917c208
permissions -rw-r--r--
Bug 1957280: Limit user's mouse amount for tree component r=places-reviewers,reusable-components-reviewers,masayuki,mstriemer Differential Revision: https://phabricator.services.mozilla.com/D251224
<!DOCTYPE html>
<html class="reftest-wait">
<title>Validates rendering of an animated element with jump-start in the before phase</title>
<link rel="help" href="https://www.w3.org/TR/css-animations-1">
<link rel="help" href="https://www.w3.org/TR/web-animations-1/#calculating-the-transformed-progress">
<link rel="match" href="jump-start-animation-before-phase-ref.html">
<style type="text/css" media="screen">
  body {
    margin: 0;
  }

  @keyframes slide {
    from { transform: translateX(100px); }
    to { transform: translateX(200px); }
  }

  #target {
    background-color: green;
    height: 100px;
    width: 100px;
    margin: 0;
    animation: slide 10000s 5000s steps(1, jump-start) backwards;
  }
</style>
<body>
  <div id="target"></div>
</body>
<script src="/common/reftest-wait.js"></script>
<script src="support/testcommon.js"></script>
<script type="text/javascript">
  window.onload = async () => {
    await document.getAnimations()[0].ready;
    await waitForNextFrame();
    takeScreenshot();
  }
</script>