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 } | 11 } |
12 | 12 |
13 @-webkit-keyframes move { | 13 @-webkit-keyframes move { |
14 from { -webkit-transform: translate(0px, 0px); } | 14 from { transform: translate(0px, 0px); } |
15 to { -webkit-transform: translate(100px, 0px); } | 15 to { transform: translate(100px, 0px); } |
16 } | 16 } |
17 </style> | 17 </style> |
18 <script type="text/javascript" charset="utf-8"> | 18 <script type="text/javascript" charset="utf-8"> |
19 if (window.testRunner) { | 19 if (window.testRunner) { |
20 testRunner.dumpAsText(); | 20 testRunner.dumpAsText(); |
21 testRunner.waitUntilDone(); | 21 testRunner.waitUntilDone(); |
22 } | 22 } |
23 | 23 |
24 var numDone = 0; | 24 var numDone = 0; |
25 function animationEnded() | 25 function animationEnded() |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 <p>Tests element removal and hiding within the webkitAnimationEnd event handler.
Should not crash.</p> | 61 <p>Tests element removal and hiding within the webkitAnimationEnd event handler.
Should not crash.</p> |
62 | 62 |
63 <div id="container"> | 63 <div id="container"> |
64 <div id="box1" class="box"></div> | 64 <div id="box1" class="box"></div> |
65 <div id="box2" class="box"></div> | 65 <div id="box2" class="box"></div> |
66 </div> | 66 </div> |
67 <div id="results"></div> | 67 <div id="results"></div> |
68 </body> | 68 </body> |
69 </html> | 69 </html> |
OLD | NEW |