content/canvas/test/reftest/clip-multiple-paths-badref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/content/canvas/test/reftest/clip-multiple-paths-badref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +<head>
     1.7 +<canvas id="canvas" width="100" height="100"></canvas>
     1.8 +<script>
     1.9 +
    1.10 +var canvas = document.getElementById('canvas');
    1.11 +var ctx = canvas.getContext('2d');
    1.12 +
    1.13 +ctx.fillStyle = '#0f0';
    1.14 +ctx.fillRect(0, 0, 100, 100);
    1.15 +
    1.16 +ctx.beginPath();
    1.17 +ctx.arc(50, 50, 25, 0, 2 * Math.PI);
    1.18 +ctx.clip();
    1.19 +
    1.20 +ctx.fillStyle = '#f00';
    1.21 +
    1.22 +ctx.fillRect(0, 0, 100, 100);
    1.23 +
    1.24 +</script>
    1.25 +</body></html>

mercurial