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.
This commit is contained in:
InvalidUsernameException 2025-03-07 22:05:00 +01:00 committed by Alexander Kalenik
commit 5d3b45127e
Notes: github-actions[bot] 2025-03-10 16:15:10 +00:00
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,27 @@
<!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>