ladybird/Tests/LibWeb/Text/input/canvas/fill-0-height-canvas-should-not-crash.html
Aliaksandr Kalenik fd25fea3ab LibWeb: Add missing empty size check before allocating PaintingSurface
Fixes crashing when Gfx::PaintingSurface::create_with_size() is called
with a size of 0.
2024-12-05 17:21:05 +01:00

11 lines
257 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
test(() => {
let c = document.createElement("canvas");
c.width = 300;
c.height = 0;
c.toDataURL();
println("PASS (didn't crash!)");
});
</script>