8 transform: translateZ(
0);
9 -webkit-animation-direction: alternate;
10 -webkit-animation-duration:
2s;
11 -webkit-animation-timing-function: linear;
12 -webkit-animation-iteration-count:
6;
16 -webkit-animation-delay: -
30s;
20 -webkit-animation-delay: -
3s;
24 -webkit-animation-delay:
0s;
28 -webkit-animation-delay:
3s;
32 -webkit-animation-name: anim-left;
37 -webkit-animation-name: anim-transform;
41 @-webkit-keyframes anim-left {
50 @-webkit-keyframes anim-transform {
52 transform: translateX(
0px);
55 transform: translateX(
300px);
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
65 This test is successful if the boxes are mostly in sync (there might be a small
70 Start delay -
30s (starts
30 seconds into animation by which the animation has finished, hence no animation)
72 <div class='test0 anim-left'
></div>
73 <div class='test0 anim-transform'
></div>
75 Start delay -
3s (starts
3 seconds into the animation, should finish first.)
77 <div class='test1 anim-left'
></div>
78 <div class='test1 anim-transform'
></div>
80 Start delay
0s (no start delay, should finish second.)
82 <div class='test2 anim-left'
></div>
83 <div class='test2 anim-transform'
></div>
85 Start delay
3s (starts
3 seconds after page load, should finish last.)
87 <div class='test3 anim-left'
></div>
88 <div class='test3 anim-transform'
></div>