diff --git a/layout/reftests/writing-mode/1147834-bottom-left-ref.html b/layout/reftests/writing-mode/1147834-bottom-left-ref.html
new file mode 100644
index 000000000000..22a7807fe08f
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-bottom-left-ref.html
@@ -0,0 +1,27 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-bottom-right-ref.html b/layout/reftests/writing-mode/1147834-bottom-right-ref.html
new file mode 100644
index 000000000000..7b04cf659b9f
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-bottom-right-ref.html
@@ -0,0 +1,27 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-relative-overconstrained-horizontal-tb-ltr.html b/layout/reftests/writing-mode/1147834-relative-overconstrained-horizontal-tb-ltr.html
new file mode 100644
index 000000000000..4ce2980af5ab
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-relative-overconstrained-horizontal-tb-ltr.html
@@ -0,0 +1,31 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-relative-overconstrained-horizontal-tb-rtl.html b/layout/reftests/writing-mode/1147834-relative-overconstrained-horizontal-tb-rtl.html
new file mode 100644
index 000000000000..1c35de714e12
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-relative-overconstrained-horizontal-tb-rtl.html
@@ -0,0 +1,31 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-lr-ltr.html b/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-lr-ltr.html
new file mode 100644
index 000000000000..397c7f06eb3f
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-lr-ltr.html
@@ -0,0 +1,31 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-lr-rtl.html b/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-lr-rtl.html
new file mode 100644
index 000000000000..9221df101284
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-lr-rtl.html
@@ -0,0 +1,31 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-rl-ltr.html b/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-rl-ltr.html
new file mode 100644
index 000000000000..cbed4d39d951
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-rl-ltr.html
@@ -0,0 +1,31 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-rl-rtl.html b/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-rl-rtl.html
new file mode 100644
index 000000000000..c6645d489faf
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-relative-overconstrained-vertical-rl-rtl.html
@@ -0,0 +1,31 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-top-left-ref.html b/layout/reftests/writing-mode/1147834-top-left-ref.html
new file mode 100644
index 000000000000..2b0914c6f90f
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-top-left-ref.html
@@ -0,0 +1,27 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/1147834-top-right-ref.html b/layout/reftests/writing-mode/1147834-top-right-ref.html
new file mode 100644
index 000000000000..8fa07ec082f0
--- /dev/null
+++ b/layout/reftests/writing-mode/1147834-top-right-ref.html
@@ -0,0 +1,27 @@
+
+
+
+
+ Overconstrained relative positioning
+
+
+
+
+
+
diff --git a/layout/reftests/writing-mode/reftest.list b/layout/reftests/writing-mode/reftest.list
index 5ffc0543fc6d..de7b241435cc 100644
--- a/layout/reftests/writing-mode/reftest.list
+++ b/layout/reftests/writing-mode/reftest.list
@@ -127,6 +127,12 @@ test-pref(dom.meta-viewport.enabled,true) test-pref(font.size.inflation.emPerLin
== 1144501-1a-block-end-margin-orthogonal-size.html 1144501-1-block-end-margin-orthogonal-size-ref.html
== 1144501-1b-block-end-margin-orthogonal-size.html 1144501-1-block-end-margin-orthogonal-size-ref.html
+== 1147834-relative-overconstrained-horizontal-tb-ltr.html 1147834-bottom-right-ref.html
+== 1147834-relative-overconstrained-horizontal-tb-rtl.html 1147834-bottom-left-ref.html
+== 1147834-relative-overconstrained-vertical-lr-ltr.html 1147834-bottom-right-ref.html
+fails == 1147834-relative-overconstrained-vertical-lr-rtl.html 1147834-top-right-ref.html # bug 1131451
+== 1147834-relative-overconstrained-vertical-rl-ltr.html 1147834-bottom-left-ref.html
+fails == 1147834-relative-overconstrained-vertical-rl-rtl.html 1147834-top-left-ref.html # bug 1131451
== 1151993-1-orthogonal-block-size.html 1151993-1-orthogonal-block-size-ref.html
== 1152941-1-orthogonal-blocksize-overflow.html 1152941-1-orthogonal-blocksize-overflow-ref.html
== 1156021-text-indent-percent.html 1156021-text-indent-percent-ref.html