Automatic update from web-platform-tests WebKit export of https://bugs.webkit.org/show_bug.cgi?id=293421 -- wpt-commits: 5c800f6dd9500d4cc175756cac9106447a75b150 wpt-pr: 54015
23 lines
358 B
HTML
23 lines
358 B
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<style>
|
|
#scroll-container {
|
|
overflow: hidden scroll;
|
|
width: 300px;
|
|
height: 100px;
|
|
}
|
|
|
|
#spacer {
|
|
height: 200px;
|
|
}
|
|
</style>
|
|
|
|
<div id="scroll-container">
|
|
<div id="spacer"></div>
|
|
</div>
|
|
|
|
<script>
|
|
const scroller = document.getElementById('scroll-container');
|
|
scroller.scrollTop = 100;
|
|
</script>
|