ladybird/Tests/LibWeb/Text/input/no-window-resize-on-load.html
Andreas Kling 4e7558c88b LibWeb: Don't fire resize event until document actually resizes once
The first time Document learns its viewport size, we now suppress firing
of the resize event.

This fixes an issue on multiple websites that were not expecting resize
events to fire so early in the loading process.
2024-07-10 10:27:31 +02:00

12 lines
228 B
HTML

<script>
var resizeCount = 0;
onresize = function() {
++resizeCount;
}
</script>
<script src="include.js"></script>
<script>
test(() => {
println("resize count: " + resizeCount);
})
</script>