diff --git a/Tests/LibWeb/Ref/abspos-escapes-scroll-container.html b/Tests/LibWeb/Ref/abspos-escapes-scroll-container.html
index 34a373b62a..92a87e0200 100644
--- a/Tests/LibWeb/Ref/abspos-escapes-scroll-container.html
+++ b/Tests/LibWeb/Ref/abspos-escapes-scroll-container.html
@@ -6,6 +6,7 @@
height: 200px;
overflow: auto;
border: 1px solid black;
+ scrollbar-width: none;
}
.content {
height: 600px;
diff --git a/Tests/LibWeb/Ref/button-inside-scroll-container.html b/Tests/LibWeb/Ref/button-inside-scroll-container.html
index 8a39ef8730..06f9bfdd4d 100644
--- a/Tests/LibWeb/Ref/button-inside-scroll-container.html
+++ b/Tests/LibWeb/Ref/button-inside-scroll-container.html
@@ -1,6 +1,10 @@