mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
e055927ead
introduced a regression that caused images to not be rendered when the page was scrolled. This was subsequently reverted in16b14273d1
. To ensure this mistake cannot happen again, this commit introduces a regression test for that error case.
27 lines
546 B
HTML
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>
|