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 .box { | 6 .box { |
7 animation-delay: 1s; | 7 animation-delay: 1s; |
8 animation-direction: reverse; | 8 animation-direction: reverse; |
9 animation-duration: 1s; | 9 animation-duration: 1s; |
10 animation-name: anim; | 10 animation-name: anim; |
11 animation-timing-function: linear; | 11 animation-timing-function: linear; |
12 height: 100px; | 12 height: 100px; |
13 left: 100px; | 13 left: 100px; |
14 position: relative; | 14 position: relative; |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 backwards.style.animationDelay = '-5s'; | 69 backwards.style.animationDelay = '-5s'; |
70 assert_equals(getComputedStyle(backwards).left, '100px'); | 70 assert_equals(getComputedStyle(backwards).left, '100px'); |
71 | 71 |
72 forwards.style.animationDelay = '-5s'; | 72 forwards.style.animationDelay = '-5s'; |
73 assert_equals(getComputedStyle(forwards).left, '200px'); | 73 assert_equals(getComputedStyle(forwards).left, '200px'); |
74 | 74 |
75 both.style.animationDelay = '-5s'; | 75 both.style.animationDelay = '-5s'; |
76 assert_equals(getComputedStyle(both).left, '200px'); | 76 assert_equals(getComputedStyle(both).left, '200px'); |
77 }, "animation directions work with fill modes"); | 77 }, "animation directions work with fill modes"); |
78 </script> | 78 </script> |
OLD | NEW |