summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/web-animations-api/player-reverse-end-exclusive.html
blob: be7d0e185a20ff0afe9e2e705c2237c9dc8f6a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
function finishedPlayer() {
  var player = document.documentElement.animate([], 100000);
  player.finish();
  return player;
}

test(function() {
  var initial = getComputedStyle(document.documentElement).background;
  var player = document.documentElement.animate([{background: 'red'}, {background: 'red'}], 100000);
  player.playbackRate = -1;
  player.currentTime = 0;
  assert_equals(getComputedStyle(document.documentElement).background, initial);
}, "An animation which is not filling backwards should not be in effect at time 0 when playing backwards");
</script>