1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/canvas/crashtests/743499-negative-size.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +<html> 1.5 +<head> 1.6 + <title></title> 1.7 + <script type="text/javascript"> 1.8 + function go() { 1.9 + var canvas = document.createElement("canvas"); 1.10 + var ctx = canvas.getContext('2d'); 1.11 + ctx.globalAlpha = 4 1.12 + ctx.lineCap = "foo" 1.13 + ctx.strokeRect(256,1024,8,4) 1.14 + ctx.shadowColor = "black" 1.15 + ctx.shadowOffsetY = 64 1.16 + ctx.stroke() 1.17 + ctx.moveTo(32,1024) 1.18 + ctx.closePath() 1.19 + } 1.20 + </script> 1.21 +</head> 1.22 +<body onload="go()"> 1.23 +<canvas id="canvas"></canvas> 1.24 +</body> 1.25 +</html> 1.26 \ No newline at end of file