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

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

Issue 225183014: Handle direction control in compositor Animations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: same patch with a manual test added Created 6 years, 3 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 | Source/core/animation/CompositorAnimations.h » ('j') | 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 -webkit-transform: translateZ(0);
9 -webkit-animation-direction: alternate;
10 -webkit-animation-duration: 2s; 9 -webkit-animation-duration: 2s;
11 -webkit-animation-timing-function: linear; 10 -webkit-animation-timing-function: linear;
12 -webkit-animation-iteration-count: 6; 11 -webkit-animation-fill-mode: both;
12 -webkit-animation-iteration-count: 2;
13 } 13 }
14 14
15 .test0 { 15 .test0 {
16 -webkit-animation-delay: -30s; 16 -webkit-animation-direction: normal;
17 } 17 }
18 18
19 .test1 { 19 .test1 {
20 -webkit-animation-delay: -3s; 20 -webkit-animation-direction: reverse;
21 } 21 }
22 22
23 .test2 { 23 .test2 {
24 -webkit-animation-delay: 0s; 24 -webkit-animation-direction: alternate;
25 } 25 }
26 26
27 .test3 { 27 .test3 {
28 -webkit-animation-delay: 3s; 28 -webkit-animation-direction: 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;
(...skipping 21 matching lines...) Expand all
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 boxes are mostly in sync (there might be a small
66 offset between them). 66 offset between them).
67 </p> 67 </p>
68 <hr> 68 <hr>
69 69
70 Start delay -30s (starts 30 seconds into animation by which the animation has fi nished, hence no animation) 70 Direction normal
71 <br> 71 <br>
72 <div class='test0 anim-left'></div> 72 <div class='test0 anim-left'></div>
73 <div class='test0 anim-transform'></div> 73 <div class='test0 anim-transform'></div>
74 74
75 Start delay -3s (starts 3 seconds into the animation, should finish first.) 75 Direction reverse
76 <br> 76 <br>
77 <div class='test1 anim-left'></div> 77 <div class='test1 anim-left'></div>
78 <div class='test1 anim-transform'></div> 78 <div class='test1 anim-transform'></div>
79 79
80 Start delay 0s (no start delay, should finish second.) 80 Direction alternate
81 <br> 81 <br>
82 <div class='test2 anim-left'></div> 82 <div class='test2 anim-left'></div>
83 <div class='test2 anim-transform'></div> 83 <div class='test2 anim-transform'></div>
84 84
85 Start delay 3s (starts 3 seconds after page load, should finish last.) 85 Direction alternate-reverse
86 <br> 86 <br>
87 <div class='test3 anim-left'></div> 87 <div class='test3 anim-left'></div>
88 <div class='test3 anim-transform'></div> 88 <div class='test3 anim-transform'></div>
89
89 </body> 90 </body>
90 </html> 91 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/CompositorAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698