OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="about:blank" type="text/css"> | 3 <link rel="stylesheet" href="about:blank" type="text/css"> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <p>If the canvas below is black, then we managed to draw before loading styl
esheets. Hooray!</p> | 6 <p>If the canvas below is black, then we managed to draw before loading styl
esheets. Hooray!</p> |
7 <canvas id="mycanvas" width="400" height="200"></canvas> | 7 <canvas id="mycanvas" width="400" height="200"></canvas> |
8 <script type="application/x-javascript"> | 8 <script type="application/x-javascript"> |
9 if (window.testRunner) | 9 if (window.testRunner) |
10 testRunner.dumpAsText(true); | 10 testRunner.dumpAsTextWithPixelResults(); |
11 | 11 |
12 var canvas = document.getElementById("mycanvas"); | 12 var canvas = document.getElementById("mycanvas"); |
13 canvas.getContext("2d").fillRect(0, 0, canvas.width, canvas.height); | 13 canvas.getContext("2d").fillRect(0, 0, canvas.width, canvas.height); |
14 </script> | 14 </script> |
15 </body> | 15 </body> |
16 </html> | 16 </html> |
OLD | NEW |