layout/reftests/canvas/subpixel-1.html

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     1 <!DOCTYPE html>
     2 <html>
     3 <body>
     4 <canvas id="canvas"></canvas>
     5 <script>
     6 var c = canvas.getContext('2d');
     7 c.font = "8pt sans-serif";
     8 c.textAlign = "center";
     9 c.textBaseline = "middle";
    10 c.fillStyle = "white";
    11 c.fillText("Test Text", canvas.width / 2, canvas.height / 2);
    12 </script>
    13 </body>
    14 </html>

mercurial