diff --git a/layout/reftests/bidi/1161752-1-embed.html b/layout/reftests/bidi/1161752-1-embed.html
new file mode 100644
index 00000000000..f8bae49cc41
--- /dev/null
+++ b/layout/reftests/bidi/1161752-1-embed.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/1161752-2-embed.html b/layout/reftests/bidi/1161752-2-embed.html
new file mode 100644
index 00000000000..b6a24ce01db
--- /dev/null
+++ b/layout/reftests/bidi/1161752-2-embed.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/1161752-3-embed.html b/layout/reftests/bidi/1161752-3-embed.html
new file mode 100644
index 00000000000..d18228fe026
--- /dev/null
+++ b/layout/reftests/bidi/1161752-3-embed.html
@@ -0,0 +1,32 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/1161752-4-embed.html b/layout/reftests/bidi/1161752-4-embed.html
new file mode 100644
index 00000000000..78e0e27a1f3
--- /dev/null
+++ b/layout/reftests/bidi/1161752-4-embed.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/1161752-5-embed-ref.html b/layout/reftests/bidi/1161752-5-embed-ref.html
new file mode 100644
index 00000000000..138bc0327aa
--- /dev/null
+++ b/layout/reftests/bidi/1161752-5-embed-ref.html
@@ -0,0 +1,30 @@
+
+
+
+ Testcase for bug 1161752
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/1161752-5-embed.html b/layout/reftests/bidi/1161752-5-embed.html
new file mode 100644
index 00000000000..4dffa00682a
--- /dev/null
+++ b/layout/reftests/bidi/1161752-5-embed.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/1161752-ref.html b/layout/reftests/bidi/1161752-ref.html
new file mode 100644
index 00000000000..c6ffce33fbd
--- /dev/null
+++ b/layout/reftests/bidi/1161752-ref.html
@@ -0,0 +1,35 @@
+
+
+
+ Testcase for bug 1161752
+
+
+
+
+ Test passes if there are three filled green rectangles and no red.
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/1161752.html b/layout/reftests/bidi/1161752.html
new file mode 100644
index 00000000000..e3fa245f56f
--- /dev/null
+++ b/layout/reftests/bidi/1161752.html
@@ -0,0 +1,73 @@
+
+
+
+ Testcase for bug 1161752
+
+
+
+
+
+ Test passes if there are three filled green rectangles and no red.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/bidi/reftest.list b/layout/reftests/bidi/reftest.list
index 7a0be8fa579..40a1c196491 100644
--- a/layout/reftests/bidi/reftest.list
+++ b/layout/reftests/bidi/reftest.list
@@ -152,3 +152,5 @@ skip-if((B2G&&browserIsRemote)||Mulet) == 869833-1.xul 869833-1-ref.xul # Initia
== 1069941-inline-bidi-margin-1.html 1069941-inline-bidi-margin-1-ref.html
skip-if(B2G||Mulet) != 1155359-1.xul 1155359-1-ref.xul
== 1157726-1.html 1157726-1-ref.html
+== 1161752.html 1161752-ref.html
+== 1161752-5-embed.html 1161752-5-embed-ref.html