8 transform: translateZ(
0);
9 -webkit-animation-duration:
2s;
10 -webkit-animation-timing-function: linear;
11 -webkit-animation-fill-mode: both;
12 -webkit-animation-iteration-count:
2;
16 -webkit-animation-direction: normal;
20 -webkit-animation-direction: reverse;
24 -webkit-animation-direction: alternate;
28 -webkit-animation-direction: alternate-reverse;
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 each pair of boxes are mostly in sync (there
66 might be a small offset between them).
70 Direction normal - forwards twice
72 <div class='normal anim-left'
></div>
73 <div class='normal anim-transform'
></div>
75 Direction reverse - backwards twice
77 <div class='reverse anim-left'
></div>
78 <div class='reverse anim-transform'
></div>
80 Direction alternate - forwards then backwards
82 <div class='alternate anim-left'
></div>
83 <div class='alternate anim-transform'
></div>
85 Direction alternate-reverse - backwards then forwards
87 <div class='alternate-reverse anim-left'
></div>
88 <div class='alternate-reverse anim-transform'
></div>