wpt / css / css-masking / clip-path / animations / clip-path-animation-fragmented-inline.html

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

/css/css-masking/clip-path/animations/clip-path-animation-fragmented-inline.html

<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://drafts.csswg.org/css-shapes-1/#basic-shape-interpolation">
<link rel="match" href="clip-path-animation-fragmented-inline-ref.html">
<meta content="ahem" name="flags">
<meta name=fuzzy content="0-65;0-350">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
  @keyframes clippath {
    0% {
      clip-path: circle(5% at 50% 50%);
    }

    100% {
      clip-path: circle(45% at 50% 50%);
    }
  }

  .outer {
    columns: 2;
    column-gap: 0;
    width: 200px;
    height: 100px;
    font: 100px/1 Ahem;
    color: blue;
  }

  .inner {
    background-color: blue;
    animation: clippath 20s steps(1, jump-both);
  }
</style>
<script src="/common/reftest-wait.js"></script>
<script src="/web-animations/resources/timing-utils.js"></script>

<body>
  <div class="outer">
    <span class="inner">XX</span>
  </div>

  <script>
    waitForAnimationTime(document.getAnimations()[0], 1).then(takeScreenshot);
  </script>
</body>

</html>

/css/css-masking/clip-path/animations/clip-path-animation-fragmented-inline-ref.html

<!DOCTYPE html>
<meta content="ahem" name="flags">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<div style="columns: 2; column-gap: 0; width: 200px; height: 100px; font: 100px/1 Ahem; color: blue;">
  <span style="background-color: blue; clip-path: circle(25% at 50% 50%);">XX</span>
</div>