summaryrefslogtreecommitdiffstats
path: root/layout/reftests/canvas/1817873-1.html
blob: 61b0189183ad485a3573a94a45f65a258dcd3139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!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.lineJoin = 'round';
ctx.beginPath();
ctx.moveTo(20, 20);
ctx.lineTo(20, 30);
ctx.closePath();
ctx.stroke();
</script>