diff --git a/tests/ref/basic.list b/tests/ref/basic.list
index 8ec3b378115..30da7454c18 100644
--- a/tests/ref/basic.list
+++ b/tests/ref/basic.list
@@ -13,7 +13,6 @@ fragment=top != ../html/acid2.html acid2_ref.html
flaky_cpu == append_style_a.html append_style_b.html
# `?` and `#` in the name is a test for https://github.com/servo/servo/issues/3340
-== iframe/hide_and_show.html iframe/hide_and_show_ref.html
== iframe/hide_layers1.html iframe/hide_layers_ref.html
== iframe/hide_layers2.html iframe/hide_layers_ref.html
== iframe/multiple_external.html iframe/multiple_external_ref.html
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 5c49f9d3276..f6a65f820bf 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -1591,6 +1591,18 @@
"url": "/_mozilla/css/iframe/hide_after_load.html"
}
],
+ "css/iframe/hide_and_show.html": [
+ {
+ "path": "css/iframe/hide_and_show.html",
+ "references": [
+ [
+ "/_mozilla/css/iframe/hide_and_show_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/iframe/hide_and_show.html"
+ }
+ ],
"css/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",
@@ -7056,6 +7068,18 @@
"url": "/_mozilla/css/iframe/hide_after_load.html"
}
],
+ "css/iframe/hide_and_show.html": [
+ {
+ "path": "css/iframe/hide_and_show.html",
+ "references": [
+ [
+ "/_mozilla/css/iframe/hide_and_show_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/iframe/hide_and_show.html"
+ }
+ ],
"css/image_rendering_auto_a.html": [
{
"path": "css/image_rendering_auto_a.html",
diff --git a/tests/ref/iframe/hide_and_show.html b/tests/wpt/mozilla/tests/css/iframe/hide_and_show.html
similarity index 92%
rename from tests/ref/iframe/hide_and_show.html
rename to tests/wpt/mozilla/tests/css/iframe/hide_and_show.html
index 29ab83dfe2a..6acdaf6dc6f 100644
--- a/tests/ref/iframe/hide_and_show.html
+++ b/tests/wpt/mozilla/tests/css/iframe/hide_and_show.html
@@ -1,5 +1,6 @@
+