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