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
22 <div id=
"test1a">MT
</div>
23 <div id=
"test1b">CT
</div>
27 <div id=
"test2a">MT
</div>
28 <div id=
"test2b">CT
</div>
32 <div id=
"test3a">MT
</div>
33 <div id=
"test3b">CT
</div>
36 var transformKeyframes
= [
37 {transform
: 'translateX(0px)'},
38 {transform
: 'translateX(500px)'}];
43 players
.push(test1a
.animate(leftKeyframes
, {
49 players
.push(test1b
.animate(transformKeyframes
, {
55 players
.push(test2a
.animate(leftKeyframes
, {
61 players
.push(test2b
.animate(transformKeyframes
, {
67 players
.push(test3a
.animate(leftKeyframes
, {
73 players
.push(test3b
.animate(transformKeyframes
, {
80 setTimeout(function() {
81 players
.forEach(function(player
) {
82 player
.playbackRate
= 0.5;
85 setTimeout(function() {
86 players
.forEach(function(player
) {
87 player
.playbackRate
= 1.5;