summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html
blob: 3796142dc60b8122fb629ec208ac732d970e34b1 (plain)
1
2
3
4
5
6
7
8
9
10
This test ensures that accessing the context of a zero sized canvas does not crash.
<canvas id="canvas" width="0" height="0"></canvas><br />
<script>
if (window.testRunner)
    testRunner.dumpAsText();

var context = document.getElementById("canvas").getContext("2d");
context.fillStyle = "green";

</script>