diff --git a/tests/ref/basic.list b/tests/ref/basic.list
index b17fc4317c1..9c0d759e842 100644
--- a/tests/ref/basic.list
+++ b/tests/ref/basic.list
@@ -99,7 +99,6 @@ prefs:"layout.writing-mode.enabled" == iframe/size_attributes_vertical_writing_m
== img_block_display_a.html img_block_display_ref.html
== img_block_maxwidth_a.html img_block_maxwidth_ref.html
== img_block_maxwidth_b.html img_block_maxwidth_ref.html
-== img_dynamic_remove.html img_dynamic_remove_ref.html
!= img_simple.html img_simple_ref.html
!= inline_background_a.html inline_background_ref.html
== inline_block_margin_auto_a.html inline_block_margin_auto_ref.html
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 0fffa2fa262..999b761f294 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -803,6 +803,18 @@
"url": "/_mozilla/css/flex_nochild.html"
}
],
+ "css/img_dynamic_remove.html": [
+ {
+ "path": "css/img_dynamic_remove.html",
+ "references": [
+ [
+ "/_mozilla/css/img_dynamic_remove_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/img_dynamic_remove.html"
+ }
+ ],
"css/img_padding_a.html": [
{
"path": "css/img_padding_a.html",
@@ -4752,6 +4764,18 @@
"url": "/_mozilla/css/flex_nochild.html"
}
],
+ "css/img_dynamic_remove.html": [
+ {
+ "path": "css/img_dynamic_remove.html",
+ "references": [
+ [
+ "/_mozilla/css/img_dynamic_remove_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/img_dynamic_remove.html"
+ }
+ ],
"css/img_padding_a.html": [
{
"path": "css/img_padding_a.html",
diff --git a/tests/ref/img_dynamic_remove.html b/tests/wpt/mozilla/tests/css/img_dynamic_remove.html
similarity index 73%
rename from tests/ref/img_dynamic_remove.html
rename to tests/wpt/mozilla/tests/css/img_dynamic_remove.html
index f8a694446ac..9099677cfa1 100644
--- a/tests/ref/img_dynamic_remove.html
+++ b/tests/wpt/mozilla/tests/css/img_dynamic_remove.html
@@ -1,4 +1,5 @@
+
Image dynamic remove