ladybird/Tests/LibWeb/Text/input/DOM/Element-documentElement-scrollWidthHeight.html
Jelle Raaijmakers e8e6dbcee0 LibWeb: Fix document element's .scrollHeight and .scrollWidth
We were using the viewport's size as the viewport scrolling area, but
those are completely different things.
2025-06-17 17:17:34 +01:00

16 lines
383 B
HTML

<!DOCTYPE html>
<style>
#a {
background: red;
height: 1432px;
width: 1234px;
}
</style>
<div id="a"></div>
<script src="../include.js"></script>
<script>
test(() => {
println(`document.documentElement.scrollWidth: ${document.documentElement.scrollWidth}`);
println(`document.documentElement.scrollHeight: ${document.documentElement.scrollHeight}`);
});
</script>