diff --git a/testing/web-platform/tests/mathml/presentation-markup/mrow/mrow-painting-order-ref.html b/testing/web-platform/tests/mathml/presentation-markup/mrow/mrow-painting-order-ref.html
new file mode 100644
index 0000000000000..72694959a86f1
--- /dev/null
+++ b/testing/web-platform/tests/mathml/presentation-markup/mrow/mrow-painting-order-ref.html
@@ -0,0 +1,83 @@
+
+
+
+
+ mrow painting order (reference)
+
+
+
+
+ This test passes if there is no red and content is stacked such that
+
+ - foreground (dark colors) is above background (light colors)
+ - yellow foreground is above green foreground which is itself above blue foreground
+ - yellow background is above green background which is itself above blue background
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/testing/web-platform/tests/mathml/presentation-markup/mrow/mrow-painting-order.html b/testing/web-platform/tests/mathml/presentation-markup/mrow/mrow-painting-order.html
new file mode 100644
index 0000000000000..b221ec8ffda0b
--- /dev/null
+++ b/testing/web-platform/tests/mathml/presentation-markup/mrow/mrow-painting-order.html
@@ -0,0 +1,42 @@
+
+
+
+
+ mrow painting order
+
+
+
+
+
+
+
+
+
+ This test passes if there is no red and content is stacked such that
+
+ - foreground (dark colors) is above background (light colors)
+ - yellow foreground is above green foreground which is itself above blue foreground
+ - yellow background is above green background which is itself above blue background
+
+
+
+
+
+