Bug 1911926 - Update test expectations for css/css-highlight-api/painting/css-target...
[gecko.git] / layout / reftests / bugs / 691571-1.html
blobc2c1ae103d906d5bad8a95a6b75fd88520509c8a
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <canvas id="A" width=200 height=50></canvas><br />
5 <canvas id="B" width=200 height=50></canvas>
6 <script>
7 var canvasA = document.getElementById("A"),
8 ctxA = canvasA.getContext('2d'),
9 canvasB = document.getElementById("B"),
10 ctxB = canvasB.getContext('2d'),
11 width = canvasA.width,
12 height = canvasA.height;
14 ctxA.fillStyle = 'red';
15 ctxA.fillRect(0, 0, width, height);
16 var pat = ctxB.createPattern(canvasA, "repeat");
18 ctxA.clearRect(0, 0, width, height);
20 ctxB.fillStyle = pat;
21 ctxB.fillRect(0, 0, width, height);
22 </script>
23 </body>
24 </html>