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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/layer-creation/overlap-animation-clipping.html

Issue 2521163002: CSS Animations: Reduce usage of webkit prefix in 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> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .container { 6 .container {
7 height: 460px; 7 height: 460px;
8 width: 120px; 8 width: 120px;
9 overflow: hidden; 9 overflow: hidden;
10 position: relative; 10 position: relative;
(...skipping 17 matching lines...) Expand all
28 28
29 .yellow { 29 .yellow {
30 background-color: yellow; 30 background-color: yellow;
31 } 31 }
32 32
33 .gray { 33 .gray {
34 background-color: gray; 34 background-color: gray;
35 } 35 }
36 36
37 .animating1 { 37 .animating1 {
38 -webkit-animation: translate1 2s linear infinite alternate; 38 animation: translate1 2s linear infinite alternate;
39 } 39 }
40 40
41 .animating2 { 41 .animating2 {
42 -webkit-animation: translate2 2s linear infinite alternate; 42 animation: translate2 2s linear infinite alternate;
43 } 43 }
44 44
45 @-webkit-keyframes translate1 { 45 @keyframes translate1 {
46 from { transform: translate(0px, -110px); } 46 from { transform: translate(0px, -110px); }
47 to { transform: translate(0px, 590px); } 47 to { transform: translate(0px, 590px); }
48 } 48 }
49 49
50 @-webkit-keyframes translate2 { 50 @keyframes translate2 {
51 from { transform: translate(0px, -220px); } 51 from { transform: translate(0px, -220px); }
52 to { transform: translate(0px, 110px); } 52 to { transform: translate(0px, 110px); }
53 } 53 }
54 </style> 54 </style>
55 <script> 55 <script>
56 if (window.testRunner) { 56 if (window.testRunner) {
57 testRunner.dumpAsText(); 57 testRunner.dumpAsText();
58 testRunner.waitUntilDone(); 58 testRunner.waitUntilDone();
59 } 59 }
60 60
61 function queueBoxForAnimation(elementId, animationClass, callback) { 61 function queueBoxForAnimation(elementId, animationClass, callback) {
62 var box = document.getElementById(elementId); 62 var box = document.getElementById(elementId);
63 if (callback) 63 if (callback)
64 box.addEventListener('webkitAnimationStart', callback, false); 64 box.addEventListener('animationstart', callback, false);
65 box.classList.add(animationClass); 65 box.classList.add(animationClass);
66 } 66 }
67 67
68 function runTest() 68 function runTest()
69 { 69 {
70 queueBoxForAnimation("to-animate1", "animating1"); 70 queueBoxForAnimation("to-animate1", "animating1");
71 queueBoxForAnimation("to-animate2", "animating2", animationStarted); 71 queueBoxForAnimation("to-animate2", "animating2", animationStarted);
72 } 72 }
73 73
74 function animationStarted() 74 function animationStarted()
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 <div class="box gray"></div> 108 <div class="box gray"></div>
109 <div id="to-animate2" class="box"></div> 109 <div id="to-animate2" class="box"></div>
110 <!-- This div will get a layer --> 110 <!-- This div will get a layer -->
111 <div class="box yellow"></div> 111 <div class="box yellow"></div>
112 </div> 112 </div>
113 <!-- This div will also get a layer --> 113 <!-- This div will also get a layer -->
114 <div class="box yellow"></div> 114 <div class="box yellow"></div>
115 <pre id="layers">Layer tree goes here in DRT</pre> 115 <pre id="layers">Layer tree goes here in DRT</pre>
116 </body> 116 </body>
117 </html> 117 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698