gecko/content/canvas/crashtests/743499-negative-size.html
Jeff Muizelaar 05f4d55e08 Bug 743499. Handle negative sizes in CG backend. r=bas, a=akeybl
I didn't realize Sizes could be negative when originally writing this code.
2012-04-23 17:09:57 -04:00

22 lines
521 B
HTML

<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>