layout/generic/test/file_bug449653_1.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:b01d72ceee06
1 <html><head>
2 <title>Bug 449653 - drawWindow on canvas fails on load, draws white instead of specified region</title>
3 <style>
4 html, body {
5 margin: 0px;
6 padding: 0px;
7 }
8 </style>
9 </head><body>
10 <div style="width: 100px; height: 100px; background-color: lime;"></div>
11 <br>
12 <canvas id="canvas" width="100" height="100" style="background-color: red;"></canvas>
13 <script>
14 var canvas = document.getElementById("canvas");
15 var ctx = canvas.getContext("2d");
16 SpecialPowers.wrap(ctx).drawWindow(window, 0, 0, 100, 100, "white");
17 </script>
18 </body></html>

mercurial