diff --git a/tests/ref/basic.list b/tests/ref/basic.list
index 80a073d287b..8e762987913 100644
--- a/tests/ref/basic.list
+++ b/tests/ref/basic.list
@@ -9,7 +9,6 @@
# Should be == with expected failure:
fragment=top != ../html/acid2.html acid2_ref.html
-== absolute_z_index_auto_paint_order_a.html absolute_z_index_auto_paint_order_ref.html
== acid1_a.html acid1_b.html
== acid2_noscroll.html acid2_ref_broken.html
== after_block_iteration.html after_block_iteration_ref.html
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 829f4e7a5eb..2d01cb0cbb1 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -111,6 +111,18 @@
"url": "/_mozilla/css/absolute_table.html"
}
],
+ "css/absolute_z_index_auto_paint_order_a.html": [
+ {
+ "path": "css/absolute_z_index_auto_paint_order_a.html",
+ "references": [
+ [
+ "/_mozilla/css/absolute_z_index_auto_paint_order_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/absolute_z_index_auto_paint_order_a.html"
+ }
+ ],
"css/background.html": [
{
"path": "css/background.html",
@@ -1016,6 +1028,18 @@
"url": "/_mozilla/css/absolute_table.html"
}
],
+ "css/absolute_z_index_auto_paint_order_a.html": [
+ {
+ "path": "css/absolute_z_index_auto_paint_order_a.html",
+ "references": [
+ [
+ "/_mozilla/css/absolute_z_index_auto_paint_order_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/absolute_z_index_auto_paint_order_a.html"
+ }
+ ],
"css/background.html": [
{
"path": "css/background.html",
diff --git a/tests/ref/absolute_z_index_auto_paint_order_a.html b/tests/wpt/mozilla/tests/css/absolute_z_index_auto_paint_order_a.html
similarity index 82%
rename from tests/ref/absolute_z_index_auto_paint_order_a.html
rename to tests/wpt/mozilla/tests/css/absolute_z_index_auto_paint_order_a.html
index 5d725ad9007..14ada33cfe5 100644
--- a/tests/ref/absolute_z_index_auto_paint_order_a.html
+++ b/tests/wpt/mozilla/tests/css/absolute_z_index_auto_paint_order_a.html
@@ -1,4 +1,5 @@
+