diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html
index 2e2f6eb637..7e54f7aa2d 100644
--- a/js/tests/visual/modal.html
+++ b/js/tests/visual/modal.html
@@ -119,12 +119,37 @@
+
+
+
+
+
+
+ - Ensure you're using Firefox.
+ - Open a new tab and then switch back to this tab.
+ - Click into this input:
+ - Switch to the other tab and then back to this tab.
+
+
Test result:
+
+
+
+
+
+
+ (See Issue #18365)
+
Tall body content to force the page to have a scrollbar.
@@ -147,12 +172,30 @@