mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-22 19:12:53 +00:00
We were mistakenly using the width as both width and height when getting ImageData from a 2D canvas.
11 lines
297 B
HTML
11 lines
297 B
HTML
<script src="../include.js"></script>
|
|
<body><canvas id=c width=1 height=2></div>
|
|
<script>
|
|
test(() => {
|
|
let x = c.getContext("2d");
|
|
x.clearRect(0, 0, 1, 1);
|
|
let d = x.getImageData(0, 0, 1, 2);
|
|
println(d);
|
|
println("PASS: Didn't crash");
|
|
});
|
|
</script>
|