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

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

Issue 2527583002: CSS Animations: Remove unnecessary webkit prefixes from layout tests (Closed)
Patch Set: 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 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;
11 height: 100px; 11 height: 100px;
12 border: 1px solid black; 12 border: 1px solid black;
13 } 13 }
14 14
15 .box { 15 .box {
16 position: absolute; 16 position: absolute;
17 width: 100px; 17 width: 100px;
18 height: 100px; 18 height: 100px;
19 background-color: green; 19 background-color: green;
20 } 20 }
21 21
22 .indicator { 22 .indicator {
23 left: 0; 23 left: 0;
24 top: 0; 24 top: 0;
25 background-color: red; 25 background-color: red;
26 } 26 }
27 27
28 #container.moved .hardware { 28 #container.moved .hardware {
29 -webkit-animation: move 300ms linear; 29 animation: move 300ms linear;
30 } 30 }
31 31
32 .hardware { 32 .hardware {
33 transform: translate3d(0, 0, 0); 33 transform: translate3d(0, 0, 0);
34 } 34 }
35 35
36 @-webkit-keyframes move { 36 @keyframes move {
37 from { transform: translate3d(0, 0, 0); } 37 from { transform: translate3d(0, 0, 0); }
38 to { transform: translate3d(300px, 0, 0); } 38 to { transform: translate3d(300px, 0, 0); }
39 } 39 }
40 </style> 40 </style>
41 <script type="text/javascript" charset="utf-8"> 41 <script type="text/javascript" charset="utf-8">
42 42
43 function testEnded() 43 function testEnded()
44 { 44 {
45 if (window.testRunner) 45 if (window.testRunner)
46 testRunner.notifyDone(); 46 testRunner.notifyDone();
47 } 47 }
48 48
49 function startTest() 49 function startTest()
50 { 50 {
51 if (window.testRunner) 51 if (window.testRunner)
52 testRunner.waitUntilDone(); 52 testRunner.waitUntilDone();
53 53
54 document.getElementById('tester').addEventListener('webkitAnimationEnd', t estEnded, false); 54 document.getElementById('tester').addEventListener('animationend', testEnd ed, false);
55 document.getElementById('container').className = 'moved'; 55 document.getElementById('container').className = 'moved';
56 } 56 }
57 57
58 window.addEventListener('load', startTest, false); 58 window.addEventListener('load', startTest, false);
59 </script> 59 </script>
60 </head> 60 </head>
61 <body> 61 <body>
62 62
63 <p>At the end of the test the green box should obscure the red box.</p> 63 <p>At the end of the test the green box should obscure the red box.</p>
64 <div id="container"> 64 <div id="container">
65 <div class="indicator box"></div> 65 <div class="indicator box"></div>
66 <div id="tester" class="hardware box"></div> 66 <div id="tester" class="hardware box"></div>
67 </div> 67 </div>
68 68
69 <div id="result"> 69 <div id="result">
70 </div> 70 </div>
71 71
72 </body> 72 </body>
73 </html> 73 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698