| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style type="text/css"> | 4 <style type="text/css"> |
| 5 .target { | 5 .target { |
| 6 position: relative; | 6 position: relative; |
| 7 height: 100px; | 7 height: 100px; |
| 8 width: 100px; | 8 width: 100px; |
| 9 background-color: red; | 9 background-color: red; |
| 10 left: 0px; | 10 left: 0px; |
| 11 margin-bottom: 10px; | 11 margin-bottom: 10px; |
| 12 -webkit-animation: test 0.8s linear forwards; | 12 animation: test 0.8s linear forwards; |
| 13 -webkit-animation-play-state: paused; | 13 animation-play-state: paused; |
| 14 animation: test 0.8s linear forwards; | 14 animation: test 0.8s linear forwards; |
| 15 animation-play-state: paused; | 15 animation-play-state: paused; |
| 16 } | 16 } |
| 17 .running { | 17 .running { |
| 18 -webkit-animation-play-state: running; | 18 animation-play-state: running; |
| 19 animation-play-state: running; | 19 animation-play-state: running; |
| 20 } | 20 } |
| 21 #animation1 { | 21 #animation1 { |
| 22 -webkit-animation-delay: -0.2s; | 22 animation-delay: -0.2s; |
| 23 animation-delay: -0.2s; | 23 animation-delay: -0.2s; |
| 24 } | 24 } |
| 25 #animation2 { | 25 #animation2 { |
| 26 -webkit-animation-delay: 0s; | 26 animation-delay: 0s; |
| 27 animation-delay: 0s; | 27 animation-delay: 0s; |
| 28 } | 28 } |
| 29 #animation3 { | 29 #animation3 { |
| 30 -webkit-animation-delay: 0.2s; | 30 animation-delay: 0.2s; |
| 31 animation-delay: 0.2s; | 31 animation-delay: 0.2s; |
| 32 } | 32 } |
| 33 @-webkit-keyframes test { | 33 @keyframes test { |
| 34 from { left: 100px; } | 34 from { left: 100px; } |
| 35 to { left: 300px; } | 35 to { left: 300px; } |
| 36 } | 36 } |
| 37 @keyframes test { | 37 @keyframes test { |
| 38 from { left: 100px; } | 38 from { left: 100px; } |
| 39 to { left: 300px; } | 39 to { left: 300px; } |
| 40 } | 40 } |
| 41 </style> | 41 </style> |
| 42 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr
ipt> | 42 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr
ipt> |
| 43 <script type="text/javascript"> | 43 <script type="text/javascript"> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 </script> | 82 </script> |
| 83 </head> | 83 </head> |
| 84 <body> | 84 <body> |
| 85 <p>This tests that an animation which is initially paused produces the correct
output when first created, and can be unpaused.</p> | 85 <p>This tests that an animation which is initially paused produces the correct
output when first created, and can be unpaused.</p> |
| 86 <div class="target" id="animation1"></div> | 86 <div class="target" id="animation1"></div> |
| 87 <div class="target" id="animation2"></div> | 87 <div class="target" id="animation2"></div> |
| 88 <div class="target" id="animation3"></div> | 88 <div class="target" id="animation3"></div> |
| 89 <div id="result"></div> | 89 <div id="result"></div> |
| 90 </body> | 90 </body> |
| 91 </html> | 91 </html> |
| OLD | NEW |