ladybird/Tests/LibWeb/Ref/input/bitmaps-with-scroll-offset.html
InvalidUsernameException 5d3b45127e Tests: Regression test recent image rendering bug when scrolling
e055927ead introduced a regression that caused images to not be rendered
when the page was scrolled. This was subsequently reverted in
16b14273d1. To ensure this mistake cannot happen again, this commit
introduces a regression test for that error case.
2025-03-10 17:14:13 +01:00

27 lines
546 B
HTML

<!DOCTYPE html>
<link rel="match" href="../expected/bitmaps-with-scroll-offset-ref.html" />
<style>
html { scrollbar-width: none; }
body {
position: relative;
height: 400vh;
}
#container {
position: absolute;
top: 200px;
}
#background-image {
display: inline-block;
width: 120px;
height: 120px;
background-image: url("../../Assets/120.png");
background-repeat: no-repeat;
}
</style>
<div id="container">
<img src="../../Assets/120.png" />
<div id="background-image"></div>
</div>
<script>
window.scrollTo(0, 200);
</script>