1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

LibWeb/Tests: Add basic test for Element::scroll(x, y)

This commit is contained in:
Aliaksandr Kalenik 2023-08-06 21:38:39 +02:00 committed by Andreas Kling
parent 433d3f988d
commit dc08e9138c
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,22 @@
<style>
#scrollbox {
width: 200px;
height: 200px;
overflow: scroll;
border: 1px solid black;
}
#content {
height: 1000px;
}
</style>
<script>
document.addEventListener(
"DOMContentLoaded",
function () {
document.getElementById("scrollbox").scroll(0, 100);
},
false
);
</script>
<div id="scrollbox"><div id="content"></div></div>