testing/web-platform/tests/web-animations/animation-model/keyframe-effects/effect-value-opacity-replaced-effect.html
author Lando <lando@lando.test>
Fri, 11 Jul 2025 04:32:24 +0000 (62 minutes ago)
changeset 796014 f14d1c1492bc6791542a001365abbca4bd9b28db
parent 671204 a7fcb697a45baf79f7c09de3d7af4224f93771bf
permissions -rw-r--r--
Merge autoland to mozilla-central
<!doctype html>
<html class="reftest-wait">
<head>
<meta charset=utf-8>
<title>The effect value of consecutive animations targeting 'opacity'</title>
<link rel="help" href="https://drafts.csswg.org/web-animations/">
<link rel="match" href="effect-value-opacity-replaced-effect-ref.html">
<style>
div {
  width: 100px;
  height: 100px;
  background: green;
  will-change: opacity;
}
</style>
</head>
<body>
<div></div>
<script>
'use strict';

(async function () {
  const div = document.querySelector('div');

  await div.animate({ opacity: [1, 0] }, { duration: 10, fill: 'both' }).finished;
  await div.animate({ opacity: [0, 1] }, { duration: 10, fill: 'both' }).finished;

  document.documentElement.classList.remove("reftest-wait");
})();
</script>
</body>
</html>