diff --git a/tests/ref/basic.list b/tests/ref/basic.list
index 8b517baa4f2..aac0fe88fa1 100644
--- a/tests/ref/basic.list
+++ b/tests/ref/basic.list
@@ -12,7 +12,6 @@ fragment=top != ../html/acid2.html acid2_ref.html
== acid1_a.html acid1_b.html
== acid2_noscroll.html acid2_ref_broken.html
flaky_cpu == append_style_a.html append_style_b.html
-== block_formatting_context_overflow_a.html block_formatting_context_overflow_ref.html
== block_formatting_context_relative_a.html block_formatting_context_ref.html
== block_formatting_context_translation_a.html block_formatting_context_translation_ref.html
== block_formatting_context_with_margin_a.html block_formatting_context_with_margin_ref.html
diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json
index 83ca1330841..f4ea6e4e62e 100644
--- a/tests/wpt/mozilla/meta/MANIFEST.json
+++ b/tests/wpt/mozilla/meta/MANIFEST.json
@@ -507,6 +507,18 @@
"url": "/_mozilla/css/block_formatting_context_max_width_a.html"
}
],
+ "css/block_formatting_context_overflow_a.html": [
+ {
+ "path": "css/block_formatting_context_overflow_a.html",
+ "references": [
+ [
+ "/_mozilla/css/block_formatting_context_overflow_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/block_formatting_context_overflow_a.html"
+ }
+ ],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",
@@ -1796,6 +1808,18 @@
"url": "/_mozilla/css/block_formatting_context_max_width_a.html"
}
],
+ "css/block_formatting_context_overflow_a.html": [
+ {
+ "path": "css/block_formatting_context_overflow_a.html",
+ "references": [
+ [
+ "/_mozilla/css/block_formatting_context_overflow_ref.html",
+ "=="
+ ]
+ ],
+ "url": "/_mozilla/css/block_formatting_context_overflow_a.html"
+ }
+ ],
"css/class-namespaces.html": [
{
"path": "css/class-namespaces.html",
diff --git a/tests/ref/block_formatting_context_overflow_a.html b/tests/wpt/mozilla/tests/css/block_formatting_context_overflow_a.html
similarity index 79%
rename from tests/ref/block_formatting_context_overflow_a.html
rename to tests/wpt/mozilla/tests/css/block_formatting_context_overflow_a.html
index c38766870cf..1376c99962f 100644
--- a/tests/ref/block_formatting_context_overflow_a.html
+++ b/tests/wpt/mozilla/tests/css/block_formatting_context_overflow_a.html
@@ -1,4 +1,5 @@
+