layout/reftests/canvas/image-rendering-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/canvas/image-rendering-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<!--
     1.6 +    Any copyright is dedicated to the Public Domain.
     1.7 +    http://creativecommons.org/licenses/publicdomain/
     1.8 +  -->
     1.9 +<html>
    1.10 +<head>
    1.11 +  <title>reference image-rendering</title>
    1.12 +  <style>
    1.13 +    canvas { position:absolute;left:0px;top:0px; }
    1.14 +  </style>
    1.15 +  <script type="text/javascript">
    1.16 +    function draw() {
    1.17 +        var canvas = document.getElementById("canvas");
    1.18 +        var ctx = canvas.getContext("2d");
    1.19 +        ctx.fillStyle = "rgb(255,0,0)";
    1.20 +        ctx.fillRect(50,50,200,200);
    1.21 +        ctx.fillStyle = "rgb(0,255,0)";
    1.22 +        ctx.fillRect(50,50,100,100);
    1.23 +    }
    1.24 +  </script>
    1.25 +</head>
    1.26 +<body onload="draw();">
    1.27 +  <canvas id="canvas" width="300" height="300"></canvas>
    1.28 +</body>
    1.29 +</html>

mercurial