layout/reftests/canvas/transformed-clip.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <html>
     2 <body>
     3   <canvas width="500" height="500"></canvas>
     4 <script>
     5   var canvas = document.getElementsByTagName('canvas')[0];
     6   var ctx = canvas.getContext('2d');
     8   ctx.translate(500, 500);
     9   ctx.fillStyle = "red";
    10   ctx.beginPath();
    11   ctx.rect(-250, -250, 50, 50);
    12   ctx.clip();
    13   ctx.fillRect(-500,-500,500,500);
    14 </script>
    15 </body>
    16 </html>

mercurial