summaryrefslogtreecommitdiffstats
path: root/dom/canvas/crashtests/743499-negative-size.html
blob: 7cfcd55b2a777e00268484549e2f490024c18713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
    <title></title>
    <script type="text/javascript">
        function go() {
        var canvas = document.createElement("canvas");
        var ctx = canvas.getContext('2d');
        ctx.globalAlpha = 4
        ctx.lineCap = "foo"
        ctx.strokeRect(256,1024,8,4)
        ctx.shadowColor = "black"
        ctx.shadowOffsetY = 64
        ctx.stroke()
        ctx.moveTo(32,1024)
        ctx.closePath()
        }
    </script>
</head>
<body onload="go()">
<canvas id="canvas"></canvas>
</body>
</html>