summaryrefslogtreecommitdiffstats
path: root/layout/reftests/canvas/1817873-1-ref.html
blob: 299c4857a3c189b52dea00004a5ddabe15bc5af2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!DOCTYPE html>
<canvas id="c" width="200" height="100"></canvas>
<script>
var canvas = document.getElementById('c');
var ctx = canvas.getContext('2d');
ctx.strokeStyle = 'green';
ctx.lineWidth = '10';
ctx.beginPath();
ctx.moveTo(20, 20);
ctx.lineTo(20, 30);
ctx.closePath();
ctx.stroke();
</script>