summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/canvas/element/manual/context-attributes/canvas-with-padding.html
blob: 5a93ef680a6cdd287fb0082a82f4146207abc7be (plain)
1
2
3
4
5
6
7
8
9
10
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<canvas id='c' style="padding-right: 4294967292; border-right: 124px solid black;"></canvas>
<script>
    test(function(t) {
        var canvas = document.getElementById('c');
        var ctx = canvas.getContext('2d');
        ctx.getImageData(0, 0, 1, 1);
    }, '// The test case passes by not crashing.')
</script>