| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
| 6 | 6 |
| 7 #container { | 7 #container { |
| 8 position: relative; | 8 position: relative; |
| 9 border: 1px solid black; | 9 border: 1px solid black; |
| 10 height: 100px; | 10 height: 100px; |
| 11 width: 500px; | 11 width: 500px; |
| 12 } | 12 } |
| 13 | 13 |
| 14 #box { | 14 #box { |
| 15 position: absolute; | 15 position: absolute; |
| 16 height: 100px; | 16 height: 100px; |
| 17 width: 100px; | 17 width: 100px; |
| 18 background-color: blue; | 18 background-color: blue; |
| 19 -webkit-animation-name: move; | 19 animation-name: move; |
| 20 -webkit-animation-duration: 2s; | 20 animation-duration: 2s; |
| 21 -webkit-animation-direction: alternate-reverse; | 21 animation-direction: alternate-reverse; |
| 22 -webkit-animation-iteration-count: 2; | 22 animation-iteration-count: 2; |
| 23 -webkit-animation-timing-function: linear; | 23 animation-timing-function: linear; |
| 24 -webkit-animation-fill-mode: forwards; | 24 animation-fill-mode: forwards; |
| 25 } | 25 } |
| 26 | 26 |
| 27 @-webkit-keyframes move { | 27 @keyframes move { |
| 28 0% { | 28 0% { |
| 29 left: 0; | 29 left: 0; |
| 30 } | 30 } |
| 31 100% { | 31 100% { |
| 32 left: 400px; | 32 left: 400px; |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 </style> | 36 </style> |
| 37 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> | 37 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"></script> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 53 | 53 |
| 54 <!-- Test animation-direction: alternate-reverse --> | 54 <!-- Test animation-direction: alternate-reverse --> |
| 55 <div id="container"> | 55 <div id="container"> |
| 56 <div id="box"></div> | 56 <div id="box"></div> |
| 57 </div> | 57 </div> |
| 58 | 58 |
| 59 <div id="result"></div> | 59 <div id="result"></div> |
| 60 | 60 |
| 61 </body> | 61 </body> |
| 62 </html> | 62 </html> |
| OLD | NEW |