ladybird/Tests/LibWeb/Ref/expected/scrollable-contains-rotated-boxes-ref.html
Sam Atkins b7efb61fbe Tests/LibWeb: Restructure Ref and Screenshot test dirs to match others
Now each test type has the same directories:
- input
- expected
- data

Also, tests can be in subdirectories within ./input.
2024-11-05 14:02:07 +00:00

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>