summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/reftest/clipped-dash-stroke-rect-ref.html
blob: 117bf4fbca1759a89f6058ff4b2e8478c25b7468 (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.strokeStyle = 'red';
ctx.lineWidth = 3;
ctx.setLineDash([24, 12]);
ctx.strokeRect(15, -441, 60, 420);

</script>