4 <style type=
"text/css">
16 if (window
.testRunner
)
17 testRunner
.dumpAsTextWithPixelResults();
18 var canvas
= document
.getElementById("clippedCanvas");
19 var context
= canvas
.getContext("2d");
20 context
.fillStyle
= "red";
21 context
.fillRect(0, 0, 400, 400);
22 context
.fillStyle
= "green";
23 context
.fillRect(0, 0, 200, 200);
28 <body onload=
"drawCanvas()">
29 <div class=
"clippingContainer">
30 <canvas id=
"clippedCanvas" width=
"400" height=
"400">