diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html
index 4342f0ce44..865511f97c 100644
--- a/js/tests/visual/modal.html
+++ b/js/tests/visual/modal.html
@@ -127,12 +127,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.
@@ -149,12 +174,30 @@