ladybird/Tests/LibWeb/Text/input/HTML/img-metrics-in-load-event-handlers.html
2025-03-20 11:50:49 +01:00

14 lines
415 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<script>
asyncTest((done) => {
let img = document.createElement("img");
img.src = "../../../Layout/input/400.png";
document.body.appendChild(img);
img.onload = function() {
println("image is " + img.clientWidth + "x" + img.clientHeight);
img.remove();
done();
};
});
</script>