746849.html (351B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <script> 5 6 function boom() 7 { 8 var ctx = document.querySelector("canvas").getContext('2d'); 9 ctx.rect(1, 2, 3, 4); 10 ctx.fill(); 11 for (var i = 0; i < 48; ++i) { 12 ctx.scale(100, 100); 13 } 14 ctx.isPointInPath(5, 6); 15 } 16 17 </script> 18 </head> 19 <body onload="boom();"><canvas width="100" height="100"></canvas></body> 20 </html>