Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / dom / canvas / test / reftest / 1768521-1-ref.html
blobd3c86ea35b74279aa9ecf2067d71f35ddacf665c
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <canvas id="patternCanvas" width="8" height="32"></canvas>
5 <br>
6 <canvas id="canvas" width="32" height="32"></canvas>
7 <script>
9 const patternCanvas = document.getElementById("patternCanvas");
10 const patternCtx = patternCanvas.getContext("2d");
11 patternCtx.fillStyle = "green";
12 patternCtx.fillRect(0, 0, patternCanvas.width, patternCanvas.height);
14 const canvas = document.getElementById("canvas");
15 const ctx = canvas.getContext("2d");
16 ctx.fillStyle = "green";
17 ctx.fillRect(16, 16, 16, 16);
18 </script>
20 </body>
21 </html>