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

Side by Side Diff: ManualTests/animation/compositor-animation-direction.html

Issue 636173006: Animation: Fix compositor-animation-direction manual test case (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 -webkit-transform: translateZ(0); 8 transform: translateZ(0);
9 -webkit-animation-duration: 2s; 9 -webkit-animation-duration: 2s;
10 -webkit-animation-timing-function: linear; 10 -webkit-animation-timing-function: linear;
11 -webkit-animation-fill-mode: both; 11 -webkit-animation-fill-mode: both;
12 -webkit-animation-iteration-count: 2; 12 -webkit-animation-iteration-count: 2;
13 } 13 }
14 14
15 .test0 { 15 .normal {
16 -webkit-animation-direction: normal; 16 -webkit-animation-direction: normal;
17 } 17 }
18 18
19 .test1 { 19 .reverse {
20 -webkit-animation-direction: reverse; 20 -webkit-animation-direction: reverse;
21 } 21 }
22 22
23 .test2 { 23 .alternate {
24 -webkit-animation-direction: alternate; 24 -webkit-animation-direction: alternate;
25 } 25 }
26 26
27 .test3 { 27 .alternate-reverse {
28 -webkit-animation-direction: reverse; 28 -webkit-animation-direction: alternate-reverse;
29 } 29 }
30 30
31 .anim-left { 31 .anim-left {
32 -webkit-animation-name: anim-left; 32 -webkit-animation-name: anim-left;
33 z-index: 100; 33 z-index: 100;
34 } 34 }
35 35
36 .anim-transform { 36 .anim-transform {
37 -webkit-animation-name: anim-transform; 37 -webkit-animation-name: anim-transform;
38 z-index: 200; 38 z-index: 200;
39 } 39 }
40 40
41 @-webkit-keyframes anim-left { 41 @-webkit-keyframes anim-left {
42 0% { 42 0% {
43 left: 0px; 43 left: 0px;
44 } 44 }
45 100% { 45 100% {
46 left: 300px; 46 left: 300px;
47 } 47 }
48 } 48 }
49 49
50 @-webkit-keyframes anim-transform { 50 @-webkit-keyframes anim-transform {
51 0% { 51 0% {
52 -webkit-transform: translateX(0px); 52 transform: translateX(0px);
53 } 53 }
54 100% { 54 100% {
55 -webkit-transform: translateX(300px); 55 transform: translateX(300px);
56 } 56 }
57 } 57 }
58 </style> 58 </style>
59 <body> 59 <body>
60 <p> 60 <p>
61 Each section below has two boxes, the top runs on the main thread, the bottom 61 Each section below has two boxes, the top runs on the main thread, the bottom
62 on the compositor. The animations should be identical but start at different 62 on the compositor. The animations should be identical but start at different
63 times. 63 times.
64 </p><p> 64 </p><p>
65 This test is successful if the boxes are mostly in sync (there might be a small 65 This test is successful if the each pair of boxes are mostly in sync (there
66 offset between them). 66 might be a small offset between them).
67 </p> 67 </p>
68 <hr> 68 <hr>
69 69
70 Direction normal 70 Direction normal - forwards twice
71 <br> 71 <br>
72 <div class='test0 anim-left'></div> 72 <div class='normal anim-left'></div>
73 <div class='test0 anim-transform'></div> 73 <div class='normal anim-transform'></div>
74 74
75 Direction reverse 75 Direction reverse - backwards twice
76 <br> 76 <br>
77 <div class='test1 anim-left'></div> 77 <div class='reverse anim-left'></div>
78 <div class='test1 anim-transform'></div> 78 <div class='reverse anim-transform'></div>
79 79
80 Direction alternate 80 Direction alternate - forwards then backwards
81 <br> 81 <br>
82 <div class='test2 anim-left'></div> 82 <div class='alternate anim-left'></div>
83 <div class='test2 anim-transform'></div> 83 <div class='alternate anim-transform'></div>
84 84
85 Direction alternate-reverse 85 Direction alternate-reverse - backwards then forwards
86 <br> 86 <br>
87 <div class='test3 anim-left'></div> 87 <div class='alternate-reverse anim-left'></div>
88 <div class='test3 anim-transform'></div> 88 <div class='alternate-reverse anim-transform'></div>
89 89
90 </body> 90 </body>
91 </html> 91 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698