12 Each section below has two boxes, the top runs on the main thread, the bottom
15 This test is successful if the boxes are mostly in sync and all finish at the
20 Playback rate is set to -
0.5
22 <div id=
"test0a">MT
</div>
23 <div id=
"test0b">CT
</div>
25 Playback rate is set to -
1
27 <div id=
"test1a">MT
</div>
28 <div id=
"test1b">CT
</div>
30 Playback rate is set to -
2
32 <div id=
"test2a">MT
</div>
33 <div id=
"test2b">CT
</div>
35 Playback rate is set to -
1, direction is alternate
37 <div id=
"test3a">MT
</div>
38 <div id=
"test3b">CT
</div>
40 Playback rate is set to -
1, direction is alternate, iterations is
5 - should finish a second later.
42 <div id=
"test4a">MT
</div>
43 <div id=
"test4b">CT
</div>
45 Playback rate is set to -
1, direction is alternate-reverse
47 <div id=
"test5a">MT
</div>
48 <div id=
"test5b">CT
</div>
50 Playback rate is set to -
1, direction is alternate-reverse, iterations is
5 - should finish a second later.
52 <div id=
"test6a">MT
</div>
53 <div id=
"test6b">CT
</div>
56 var transformKeyframes
= [
57 {transform
: 'translateX(0px)'},
58 {transform
: 'translateX(500px)'}
64 var player0a
= test0a
.animate(leftKeyframes
, {
70 var player0b
= test0b
.animate(transformKeyframes
, {
76 var player1a
= test1a
.animate(leftKeyframes
, {
82 var player1b
= test1b
.animate(transformKeyframes
, {
88 var player2a
= test2a
.animate(leftKeyframes
, {
94 var player2b
= test2b
.animate(transformKeyframes
, {
100 var player3a
= test3a
.animate(leftKeyframes
, {
105 direction
: 'alternate'
107 var player3b
= test3b
.animate(transformKeyframes
, {
112 direction
: 'alternate'
114 var player4a
= test4a
.animate(leftKeyframes
, {
119 direction
: 'alternate'
121 var player4b
= test4b
.animate(transformKeyframes
, {
126 direction
: 'alternate'
128 var player5a
= test5a
.animate(leftKeyframes
, {
133 direction
: 'alternate-reverse'
135 var player5b
= test5b
.animate(transformKeyframes
, {
140 direction
: 'alternate-reverse'
142 var player6a
= test6a
.animate(leftKeyframes
, {
147 direction
: 'alternate-reverse'
149 var player6b
= test6b
.animate(transformKeyframes
, {
154 direction
: 'alternate-reverse'