Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / dom / canvas / test / reftest / clip-multiple-move-1-ref.html
blob4e85b76565b7569bc88ed0f4a3492aff7ce30084
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <canvas id="canvas" width="100" height="100"></canvas>
5 <script>
7 var canvas = document.getElementById('canvas');
8 var ctx = canvas.getContext('2d');
10 ctx.fillStyle = '#0f0';
11 ctx.fillRect(0, 0, 100, 100);
13 ctx.beginPath();
14 ctx.rect(30, 30, 40, 40);
15 ctx.clip();
17 ctx.fillStyle = '#f00';
19 ctx.fillRect(0, 0, 100, 100);
21 </script>
22 </body></html>