OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <title>Test of animation-direction</title> | 2 <title>Test of animation-direction</title> |
3 <script src="../resources/testharness.js"></script> | 3 <script src="../../resources/testharness.js"></script> |
4 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../../resources/testharnessreport.js"></script> |
5 <style> | 5 <style> |
6 #target { | 6 #target { |
7 animation-direction: alternate-reverse; | 7 animation-direction: alternate-reverse; |
8 animation-duration: 2s; | 8 animation-duration: 2s; |
9 animation-iteration-count: 2; | 9 animation-iteration-count: 2; |
10 animation-name: move; | 10 animation-name: move; |
11 animation-play-state: paused; | 11 animation-play-state: paused; |
12 animation-timing-function: linear; | 12 animation-timing-function: linear; |
13 animation-fill-mode: both; | 13 animation-fill-mode: both; |
14 | 14 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 target.style.animationDelay = '-3s'; | 47 target.style.animationDelay = '-3s'; |
48 assert_equals(getComputedStyle(target).left, '200px'); | 48 assert_equals(getComputedStyle(target).left, '200px'); |
49 | 49 |
50 target.style.animationDelay = '-4s'; | 50 target.style.animationDelay = '-4s'; |
51 assert_equals(getComputedStyle(target).left, '400px'); | 51 assert_equals(getComputedStyle(target).left, '400px'); |
52 | 52 |
53 target.style.animationDelay = '-5s'; | 53 target.style.animationDelay = '-5s'; |
54 assert_equals(getComputedStyle(target).left, '400px'); | 54 assert_equals(getComputedStyle(target).left, '400px'); |
55 }, "animation-direction alternate-reverse plays backwards, then forwards"); | 55 }, "animation-direction alternate-reverse plays backwards, then forwards"); |
56 </script> | 56 </script> |
OLD | NEW |