diff --git a/tests/ref/basic.list b/tests/ref/basic.list
index fc7bf3fa286..fb2732db833 100644
--- a/tests/ref/basic.list
+++ b/tests/ref/basic.list
@@ -36,7 +36,6 @@ prefs:"layout.flex.enabled" == flex_row_direction.html flex_row_direction_ref.ht
== floated_negative_margins_a.html floated_negative_margins_ref.html
== font_size.html font_size_ref.html
# `?` and `#` in the name is a test for https://github.com/servo/servo/issues/3340
-== hide_after_create.html hide_after_create_ref.html
== iframe/bg_color.html iframe/bg_color_ref.html
== iframe/hide_after_load.html iframe/hide_after_load_ref.html
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index d9fa5921ade..ec04f24c577 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -1223,6 +1223,18 @@
"url": "/_mozilla/css/height_compute_reset.html"
}
],
+ "css/hide_after_create.html": [
+ {
+ "path": "css/hide_after_create.html",
+ "references": [
+ [
+ "/_mozilla/css/hide_after_create_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/hide_after_create.html"
+ }
+ ],
"css/img_block_display_a.html": [
{
"path": "css/img_block_display_a.html",
@@ -5616,6 +5628,18 @@
"url": "/_mozilla/css/height_compute_reset.html"
}
],
+ "css/hide_after_create.html": [
+ {
+ "path": "css/hide_after_create.html",
+ "references": [
+ [
+ "/_mozilla/css/hide_after_create_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/hide_after_create.html"
+ }
+ ],
"css/img_block_display_a.html": [
{
"path": "css/img_block_display_a.html",
diff --git a/tests/ref/hide_after_create.html b/tests/wpt/mozilla/tests/css/hide_after_create.html
similarity index 90%
rename from tests/ref/hide_after_create.html
rename to tests/wpt/mozilla/tests/css/hide_after_create.html
index e2fc4db41fb..3ae85e9c54e 100644
--- a/tests/ref/hide_after_create.html
+++ b/tests/wpt/mozilla/tests/css/hide_after_create.html
@@ -1,5 +1,6 @@
+