summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/reftest/clipped-dash-stroke-rect.html
blob: 0e44254ec31235da56e48a99a9e2bbccc6c75771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html>
<body>
<script>
canvas = document.createElement('canvas');
document.body.appendChild(canvas);
ctx = canvas.getContext('2d');

canvas.width = 1000;
canvas.height = 1000;
ctx.translate(420.31465167323177, 40.531991340689785);
ctx.scale(3, 3);

ctx.strokeStyle = 'red';
ctx.lineWidth = 1;
ctx.setLineDash([8, 4]);
ctx.strokeRect(5, -147, 20, 140);

</script>