wpt / css / css-backgrounds / animations / background-color-animation-single-keyframe.html

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

/css/css-backgrounds/animations/background-color-animation-single-keyframe.html

<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://drafts.csswg.org/css-backgrounds-3/#background-color">
<link rel="match" href="background-color-animation-single-keyframe-ref.html">
<style>
.container {
  width: 100px;
  height: 100px;
  background-color: rgb(200, 0, 0);
}
</style>
<script src="/common/reftest-wait.js"></script>
<body>
<div class="container" id="target"></div>

<script>
document.getElementById("target").animate({backgroundColor: 'rgb(0, 200, 0)'}, 100000000000);
takeScreenshot();
</script>
</body>
</html>

/css/css-backgrounds/animations/background-color-animation-single-keyframe-ref.html

<!DOCTYPE html>
<body>
  <canvas id="canvas" width="100" height="100"></canvas>
</body>
<script>
  var canvas = document.getElementById('canvas');
  var ctx = canvas.getContext('2d');
  ctx.fillStyle = 'rgb(200, 0, 0)';
  ctx.fillRect(0, 0, 100, 100);
</script>