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; | 7 animation-direction: alternate; |
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 26 matching lines...) Expand all Loading... |
41 target.style.animationDelay = '-2.5s'; | 41 target.style.animationDelay = '-2.5s'; |
42 assert_equals(getComputedStyle(target).left, '300px'); | 42 assert_equals(getComputedStyle(target).left, '300px'); |
43 | 43 |
44 target.style.animationDelay = '-3.5s'; | 44 target.style.animationDelay = '-3.5s'; |
45 assert_equals(getComputedStyle(target).left, '100px'); | 45 assert_equals(getComputedStyle(target).left, '100px'); |
46 | 46 |
47 target.style.animationDelay = '-5s'; | 47 target.style.animationDelay = '-5s'; |
48 assert_equals(getComputedStyle(target).left, '0px'); | 48 assert_equals(getComputedStyle(target).left, '0px'); |
49 }, "animation-direction alternate plays forwards, then backwards"); | 49 }, "animation-direction alternate plays forwards, then backwards"); |
50 </script> | 50 </script> |
OLD | NEW |