| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 "http://www.w3.org/TR/html4/loose.dtd"> | 2 "http://www.w3.org/TR/html4/loose.dtd"> |
| 3 | 3 |
| 4 <html lang="en"> | 4 <html lang="en"> |
| 5 <head> | 5 <head> |
| 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 7 <title>Test animation with multiple keyframes</title> | 7 <title>Test animation with multiple keyframes</title> |
| 8 <style type="text/css" media="screen"> | 8 <style type="text/css" media="screen"> |
| 9 #box { | 9 #box { |
| 10 position: relative; | 10 position: relative; |
| 11 left: 10px; | 11 left: 10px; |
| 12 top: 10px; | 12 top: 10px; |
| 13 height: 100px; | 13 height: 100px; |
| 14 width: 100px; | 14 width: 100px; |
| 15 background-color: blue; | 15 background-color: blue; |
| 16 -webkit-animation-duration: 2s; | 16 animation-duration: 2s; |
| 17 -webkit-animation-name: anim; | 17 animation-name: anim; |
| 18 } | 18 } |
| 19 @-webkit-keyframes anim { | 19 @keyframes anim { |
| 20 from { left: 10px; top: 10px; } | 20 from { left: 10px; top: 10px; } |
| 21 40% { left: 30px; width: 300px; } | 21 40% { left: 30px; width: 300px; } |
| 22 60% { top: 40px; height: 400px; } | 22 60% { top: 40px; height: 400px; } |
| 23 to { left: 20px; top: 0px; } | 23 to { left: 20px; top: 0px; } |
| 24 } | 24 } |
| 25 </style> | 25 </style> |
| 26 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"> | 26 <script src="resources/animation-test-helpers.js" type="text/javascript" chars
et="utf-8"> |
| 27 </script> | 27 </script> |
| 28 <script type="text/javascript" charset="utf-8"> | 28 <script type="text/javascript" charset="utf-8"> |
| 29 | 29 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 45 </head> | 45 </head> |
| 46 <body> | 46 <body> |
| 47 This test performs a keyframed animation of multiple properties, with their valu
es supplied in different groups of keyframes. | 47 This test performs a keyframed animation of multiple properties, with their valu
es supplied in different groups of keyframes. |
| 48 It animates over 2 seconds. | 48 It animates over 2 seconds. |
| 49 <div id="box"> | 49 <div id="box"> |
| 50 </div> | 50 </div> |
| 51 <div id="result"> | 51 <div id="result"> |
| 52 </div> | 52 </div> |
| 53 </body> | 53 </body> |
| 54 </html> | 54 </html> |
| OLD | NEW |