From 5d3b45127ef12d2304bf5a92dbe7eae8244bf145 Mon Sep 17 00:00:00 2001 From: InvalidUsernameException Date: Fri, 7 Mar 2025 22:05:00 +0100 Subject: [PATCH] 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. --- .../bitmaps-with-scroll-offset-ref.html | 19 +++++++++++++ .../Ref/input/bitmaps-with-scroll-offset.html | 27 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 Tests/LibWeb/Ref/expected/bitmaps-with-scroll-offset-ref.html create mode 100644 Tests/LibWeb/Ref/input/bitmaps-with-scroll-offset.html diff --git a/Tests/LibWeb/Ref/expected/bitmaps-with-scroll-offset-ref.html b/Tests/LibWeb/Ref/expected/bitmaps-with-scroll-offset-ref.html new file mode 100644 index 00000000000..6cbe8278c61 --- /dev/null +++ b/Tests/LibWeb/Ref/expected/bitmaps-with-scroll-offset-ref.html @@ -0,0 +1,19 @@ + + +
+ +
+
diff --git a/Tests/LibWeb/Ref/input/bitmaps-with-scroll-offset.html b/Tests/LibWeb/Ref/input/bitmaps-with-scroll-offset.html new file mode 100644 index 00000000000..b27e4023f58 --- /dev/null +++ b/Tests/LibWeb/Ref/input/bitmaps-with-scroll-offset.html @@ -0,0 +1,27 @@ + + + +
+ +
+
+