summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/web-animations-api/quirky-keyframes.html
blob: d0bcf227c53b7b3a9633bd136725be8490020e80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>

<style>
body {
  color: blue;
}

#target {
  color: green;
}
</style>

<body>
  <div id="target"></div>
</body>

<script>
test(function() {
  var animation = target.animate([{
    color: '-webkit-text',
  }, {
    color: '-webkit-text',
  }], 1);
  animation.pause();
  animation.currentTime = 0;
  assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
}, 'KeyframeEffects do not support quirky values.');
</script>