Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: third_party/WebKit/LayoutTests/animations/state-at-end-event.html

Issue 2518273002: Remove unnecessary webkit prefixes from animation layout tests (Closed)
Patch Set: remove trailing space Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 #container { 6 #container {
7 position: relative; 7 position: relative;
8 width: 400px; 8 width: 400px;
9 height: 100px; 9 height: 100px;
10 border: 1px solid black; 10 border: 1px solid black;
11 } 11 }
12 12
13 .box { 13 .box {
14 position: absolute; 14 position: absolute;
15 width: 100px; 15 width: 100px;
16 height: 100px; 16 height: 100px;
17 background-color: green; 17 background-color: green;
18 } 18 }
19 19
20 .indicator { 20 .indicator {
21 left: 0; 21 left: 0;
22 top: 0; 22 top: 0;
23 background-color: red; 23 background-color: red;
24 } 24 }
25 25
26 #container.moved .hardware { 26 #container.moved .hardware {
27 -webkit-animation: move 300ms linear; 27 animation: move 300ms linear;
28 } 28 }
29 29
30 @-webkit-keyframes move { 30 @keyframes move {
31 from { left: 0; } 31 from { left: 0; }
32 to { left: 300px; } 32 to { left: 300px; }
33 } 33 }
34 </style> 34 </style>
35 35
36 <script type="text/javascript"> 36 <script type="text/javascript">
37 function testEnded() 37 function testEnded()
38 { 38 {
39 if (window.testRunner) 39 if (window.testRunner)
40 testRunner.notifyDone(); 40 testRunner.notifyDone();
41 } 41 }
42 42
43 function startTest() 43 function startTest()
44 { 44 {
45 if (window.testRunner) 45 if (window.testRunner)
46 testRunner.waitUntilDone(); 46 testRunner.waitUntilDone();
47 47
48 document.getElementById('tester').addEventListener('webkitAnimationEnd', t estEnded, false); 48 document.getElementById('tester').addEventListener('animationend', testEnd ed, false);
49 document.getElementById('container').className = 'moved'; 49 document.getElementById('container').className = 'moved';
50 } 50 }
51 51
52 window.addEventListener('load', startTest, false); 52 window.addEventListener('load', startTest, false);
53 </script> 53 </script>
54 </head> 54 </head>
55 <body> 55 <body>
56 56
57 <p>At the end of the test the green box should obscure the red box.</p> 57 <p>At the end of the test the green box should obscure the red box.</p>
58 <div id="container"> 58 <div id="container">
59 <div class="indicator box"></div> 59 <div class="indicator box"></div>
60 <div id="tester" class="hardware box"></div> 60 <div id="tester" class="hardware box"></div>
61 </div> 61 </div>
62 62
63 <div id="result"></div> 63 <div id="result"></div>
64 64
65 </body> 65 </body>
66 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698