| 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 <style> | 7 <style> |
| 8 #container { | 8 #container { |
| 9 position: relative; | 9 position: relative; |
| 10 width: 400px; | 10 width: 400px; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 .indicator { | 22 .indicator { |
| 23 left: 150px; | 23 left: 150px; |
| 24 top: 0; | 24 top: 0; |
| 25 background-color: red; | 25 background-color: red; |
| 26 } | 26 } |
| 27 #container.moved .software { | 27 #container.moved .software { |
| 28 left: 300px; | 28 left: 300px; |
| 29 } | 29 } |
| 30 | 30 |
| 31 #container.moved .hardware { | 31 #container.moved .hardware { |
| 32 -webkit-animation: move 300ms linear; | 32 animation: move 300ms linear; |
| 33 } | 33 } |
| 34 | 34 |
| 35 .hardware { | 35 .hardware { |
| 36 -webkit-transform-style: preserve-3d; | 36 transform-style: preserve-3d; |
| 37 } | 37 } |
| 38 | 38 |
| 39 @-webkit-keyframes move { | 39 @keyframes move { |
| 40 from { transform: translateX(0); } | 40 from { transform: translateX(0); } |
| 41 to { transform: translateX(300px); } | 41 to { transform: translateX(300px); } |
| 42 } | 42 } |
| 43 </style> | 43 </style> |
| 44 <script type="text/javascript" charset="utf-8"> | 44 <script type="text/javascript" charset="utf-8"> |
| 45 | 45 |
| 46 function testEnded() | 46 function testEnded() |
| 47 { | 47 { |
| 48 document.getElementById('tester').style.webkitTransform = 'translateX(150p
x)'; | 48 document.getElementById('tester').style.transform = 'translateX(150px)'; |
| 49 if (window.testRunner) | 49 if (window.testRunner) |
| 50 testRunner.notifyDone(); | 50 testRunner.notifyDone(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 function startTest() | 53 function startTest() |
| 54 { | 54 { |
| 55 if (window.testRunner) | 55 if (window.testRunner) |
| 56 testRunner.waitUntilDone(); | 56 testRunner.waitUntilDone(); |
| 57 | 57 |
| 58 document.getElementById('tester').addEventListener('webkitAnimationEnd', t
estEnded, false); | 58 document.getElementById('tester').addEventListener('animationend', testEnd
ed, false); |
| 59 document.getElementById('container').className = 'moved'; | 59 document.getElementById('container').className = 'moved'; |
| 60 } | 60 } |
| 61 | 61 |
| 62 window.addEventListener('load', startTest, false); | 62 window.addEventListener('load', startTest, false); |
| 63 </script> | 63 </script> |
| 64 </head> | 64 </head> |
| 65 <body> | 65 <body> |
| 66 | 66 |
| 67 <p>At the end of the test the green box should obscure the red box.</p> | 67 <p>At the end of the test the green box should obscure the red box.</p> |
| 68 <div id="container"> | 68 <div id="container"> |
| 69 <div class="indicator box"></div> | 69 <div class="indicator box"></div> |
| 70 <div id="tester" class="hardware box"></div> | 70 <div id="tester" class="hardware box"></div> |
| 71 </div> | 71 </div> |
| 72 | 72 |
| 73 <div id="result"> | 73 <div id="result"> |
| 74 </div> | 74 </div> |
| 75 | 75 |
| 76 </body> | 76 </body> |
| 77 </html> | 77 </html> |
| OLD | NEW |