summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/reftest/filters/strokeText-without-shadow-2-ref.html
blob: 0892587a5e23cc85aa8bcb8479f9396daccf7391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<html>
<head>
<canvas id="canvas" width="100" height="100"></canvas>
<script>
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
ctx.globalAlpha = 0.5;
ctx.strokeStyle = "green";
ctx.font = "20px serif";
ctx.strokeText("Hello world", 0, 50);
</script>
</body></html>