mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-13 22:52:52 +00:00
Now each test type has the same directories: - input - expected - data Also, tests can be in subdirectories within ./input.
44 lines
1.3 KiB
HTML
44 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<link rel="match" href="reference/scrollable-contains-rotated-boxes-ref.html" />
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 1000px;
|
|
}
|
|
#scroll-container {
|
|
width: 300px;
|
|
height: 300px;
|
|
overflow-y: scroll;
|
|
background-color: #fff;
|
|
}
|
|
.rotated-box {
|
|
width: 100px;
|
|
height: 100px;
|
|
margin: 10px;
|
|
background-color: #3498db;
|
|
overflow: hidden;
|
|
}
|
|
.nested-box {
|
|
width: 200px;
|
|
height: 200px;
|
|
background-color: crimson;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="scroll-container">
|
|
<div class="rotated-box"><div class="nested-box"></div></div>
|
|
<div class="rotated-box"><div class="nested-box"></div></div>
|
|
<div class="rotated-box"><div class="nested-box"></div></div>
|
|
<div class="rotated-box"><div class="nested-box"></div></div>
|
|
<div class="rotated-box"><div class="nested-box"></div></div>
|
|
<div class="rotated-box"><div class="nested-box"></div></div>
|
|
<div class="rotated-box"><div class="nested-box"></div></div>
|
|
</div>
|
|
</body>
|
|
<script>
|
|
const scrollContainer = document.getElementById("scroll-container");
|
|
scrollContainer.scrollTop = 100;
|
|
</script>
|