2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" />
5 <meta name=
"viewport" content=
"width=480"/>
10 var ctx
= document
.getElementById("world").getContext("2d");
11 ctx
.fillStyle
= "red";
12 ctx
.fillRect(0,0,ctx
.canvas
.width
,ctx
.canvas
.height
);
14 if (window
.testRunner
) {
15 window
.testRunner
.dumpAsTextWithPixelResults();
16 var console
= document
.getElementById("layeroutput");
17 console
.innerHTML
= window
.internals
.layerTreeAsText(document
);
27 background-color: green;
37 <body onLoad=
"init()">
38 <pre id=
"layeroutput"></pre>
39 <div id=
"output"></div>
40 <canvas id=
"world" width=
"100" height=
"50"></canvas>