blob: 83e3da9fa9785bfdc0b6dc51652273ab5fc21a68 [file] [log] [blame]
<!DOCTYPE HTML>
<title>Canvas test: filling a pattern with an empty image should not crash.</title>
<canvas id="canvas" class="output" width="100" height="100"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
var canvas = document.getElementById("canvas").getContext("2d");
canvas.fillStyle = canvas.createPattern(new Image, "repeat")
canvas.fillRect(0,0,1,1)
</script>