mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:17:44 +00:00
LibWeb/Tests: Add basic test for Element::scroll(x, y)
This commit is contained in:
parent
433d3f988d
commit
dc08e9138c
2 changed files with 33 additions and 0 deletions
22
Tests/LibWeb/Layout/input/misc/scroll.html
Normal file
22
Tests/LibWeb/Layout/input/misc/scroll.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue