| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Destroy and Hide Element in Animation End Event</title> | 3 <title>Destroy and Hide Element in Animation End Event</title> |
| 4 <style type="text/css" media="screen"> | 4 <style type="text/css" media="screen"> |
| 5 .box { | 5 .box { |
| 6 height: 100px; | 6 height: 100px; |
| 7 width: 100px; | 7 width: 100px; |
| 8 margin: 10px; | 8 margin: 10px; |
| 9 background-color: blue; | 9 background-color: blue; |
| 10 -webkit-animation-duration: 0.2s; | 10 -webkit-animation-duration: 0.2s; |
| 11 -webkit-animation-iteration-count: 2; | 11 -webkit-animation-iteration-count: 2; |
| 12 } | 12 } |
| 13 | 13 |
| 14 @-webkit-keyframes move { | 14 @-webkit-keyframes move { |
| 15 from { -webkit-transform: translate(0px, 0px); } | 15 from { transform: translate(0px, 0px); } |
| 16 to { -webkit-transform: translate(100px, 0px); } | 16 to { transform: translate(100px, 0px); } |
| 17 } | 17 } |
| 18 </style> | 18 </style> |
| 19 <script type="text/javascript" charset="utf-8"> | 19 <script type="text/javascript" charset="utf-8"> |
| 20 if (window.testRunner) { | 20 if (window.testRunner) { |
| 21 testRunner.dumpAsText(); | 21 testRunner.dumpAsText(); |
| 22 testRunner.waitUntilDone(); | 22 testRunner.waitUntilDone(); |
| 23 } | 23 } |
| 24 | 24 |
| 25 var numDone = 0; | 25 var numDone = 0; |
| 26 function animationIterated() | 26 function animationIterated() |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 <p>Tests element removal and hiding within the webkitAnimationIteration event ha
ndler. Should not crash.</p> | 62 <p>Tests element removal and hiding within the webkitAnimationIteration event ha
ndler. Should not crash.</p> |
| 63 | 63 |
| 64 <div id="container"> | 64 <div id="container"> |
| 65 <div id="box1" class="box"></div> | 65 <div id="box1" class="box"></div> |
| 66 <div id="box2" class="box"></div> | 66 <div id="box2" class="box"></div> |
| 67 </div> | 67 </div> |
| 68 <div id="results"></div> | 68 <div id="results"></div> |
| 69 </body> | 69 </body> |
| 70 </html> | 70 </html> |
| OLD | NEW |