wpt / svg / animations / stop-animation-01.html

Status: FAIL | Duration: 19ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/svg/animations/stop-animation-01.html

<!doctype html>
<html class="reftest-wait">
<title>Animate a &lt;stop> element</title>
<link rel="match" href="../struct/reftests/reference/green-100x100.html">
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<script>
function test() {
  waitForAtLeastOneFrame().then(takeScreenshot);
}
</script>
<svg>
  <linearGradient id="g">
    <stop stop-color="red">
      <animate attributeName="stop-color" values="red; green" dur="1s"
               keyTimes="0; 0.01" fill="freeze" calcMode="discrete"
               onbegin="test()"/>
    </stop>
  </linearGradient>
  <rect width="100" height="100" fill="url(#g)"/>
</svg>

/svg/struct/reftests/reference/green-100x100.html

<!DOCTYPE html>
<div style="width: 100px; height: 100px; background-color: green"></div>