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

Side by Side Diff: third_party/WebKit/ManualTests/animation/compositor-neutral-keyframes.html

Issue 2715113003: CSS manual tests: reduce usage of webkit prefix (Closed)
Patch Set: Created 3 years, 9 months 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 <html> 1 <html>
2 <style> 2 <style>
3 div { 3 div {
4 position: relative; 4 position: relative;
5 height: 100px; 5 height: 100px;
6 width: 100px; 6 width: 100px;
7 background: blue; 7 background: blue;
8 will-change: transform; 8 will-change: transform;
9 left: 0px; 9 left: 0px;
10 -webkit-animation-duration: 2s; 10 animation-duration: 2s;
11 -webkit-animation-timing-function: linear; 11 animation-timing-function: linear;
12 -webkit-animation-iteration-count: 2; 12 animation-iteration-count: 2;
13 } 13 }
14 14
15 .anim-left { 15 .anim-left {
16 -webkit-animation-name: anim-left; 16 animation-name: anim-left;
17 z-index: 100; 17 z-index: 100;
18 } 18 }
19 19
20 .anim-transform { 20 .anim-transform {
21 -webkit-animation-name: anim-transform; 21 animation-name: anim-transform;
22 z-index: 200; 22 z-index: 200;
23 } 23 }
24 24
25 @-webkit-keyframes anim-left { 25 @keyframes anim-left {
26 100% { left: 300px; } 26 100% { left: 300px; }
27 } 27 }
28 28
29 @-webkit-keyframes anim-transform { 29 @keyframes anim-transform {
30 100% { transform: translateX(300px); } 30 100% { transform: translateX(300px); }
31 } 31 }
32 </style> 32 </style>
33 <body> 33 <body>
34 <p> 34 <p>
35 The section below has two boxes, the top runs on the main thread, the bottom 35 The section below has two boxes, the top runs on the main thread, the bottom
36 on the compositor. The animations should be identical but start at different 36 on the compositor. The animations should be identical but start at different
37 times. 37 times.
38 </p><p> 38 </p><p>
39 This test is successful if the each pair of boxes are mostly in sync (there 39 This test is successful if the each pair of boxes are mostly in sync (there
40 might be a small offset between them). 40 might be a small offset between them).
41 </p> 41 </p>
42 <hr> 42 <hr>
43 43
44 <div id="target-left" class='anim-left'></div> 44 <div id="target-left" class='anim-left'></div>
45 <div id="target-transform" class='anim-transform'></div> 45 <div id="target-transform" class='anim-transform'></div>
46 46
47 </body> 47 </body>
48 <script> 48 <script>
49 setTimeout(function() { document.getElementById('target-left').style.left = '5 00px'; }, 2000); 49 setTimeout(function() { document.getElementById('target-left').style.left = '5 00px'; }, 2000);
50 setTimeout(function() { document.getElementById('target-transform').style.tran sform = 'translateX(500px)'; }, 2000); 50 setTimeout(function() { document.getElementById('target-transform').style.tran sform = 'translateX(500px)'; }, 2000);
51 </script> 51 </script>
52 </html> 52 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698