28 background-color: #
00FF00;
33 <canvas id=
"canvas"></canvas>
34 <div id=
"overlay"><div id=
"follower"></div></div>
36 if (window
.testRunner
) {
37 testRunner
.waitUntilDone();
40 var canvas
= document
.getElementById("canvas");
44 var ctx
= canvas
.getContext("2d");
45 ctx
.fillStyle
= "#FF0000";
47 var follower
= document
.getElementById("follower");
49 drawLoop = function() {
50 // update the follower
51 follower
.style
.left
= "0px";
52 follower
.style
.top
= "0px";
55 ctx
.clearRect(0, 0, 300, 300);
56 ctx
.fillRect(0, 0, 50, 50);
58 if (window
.testRunner
) {
59 testRunner
.notifyDone();
63 window
.setTimeout(drawLoop
, 0);