summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/element/manual/the-canvas-state/2d.zero.size.canvas.html
blob: 273e5c7484583c800646eb714af711f84e8c944a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<head>
</head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<canvas id="canvas" width="0" height="0"></canvas>
<body>
<script>
test(function() {
    var context = document.getElementById("canvas").getContext("2d");
    context.fillStyle = "green";
}, 'This test ensures that accessing the context of a zero sized canvas does not crash.');
</script>
</body>
</html>