Files
ladybird/Tests/LibWeb/Ref/reference/scrollable-contains-rotated-boxes-ref.html
Andreas Kling 137038b185 LibWeb: Port painting to use the new Skia-backed Gfx::Path
SVG and and CSS border rendering now sits on top of SkPath instead of
the old Gfx::DeprecatedPath.

Due to an imperceptible (255, 255, 255) vs (255, 254, 255) color diff
in one ref test, I changed that test to not depend on border rendering
for a positive result, since that was incidental.
2024-08-20 09:30:05 +02:00

45 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>