layout/reftests/canvas/image-shadow.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 <!DOCTYPE HTML>
     2 <html>
     3 <body onload="doTest()">
     4 <canvas id="c" width="200" height="200" style="display:block"></canvas>
     5 <img id="img" src="image_green-16x16.png" style="display:none">
     6 <script>
     7 var c = document.getElementById("c");
     8 var img = document.getElementById("img");
     9 var ctx = c.getContext("2d");
    10 ctx.shadowColor = "black";
    11 ctx.shadowOffsetX = 0;
    12 ctx.shadowOffsetY = 10;
    13 function doTest() {
    14   ctx.drawImage(img, 0, 0);
    15 }
    16 </script>
    17 </body>
    18 </html>

mercurial