diff --git a/layout/reftests/bugs/385823-1-ref.html b/layout/reftests/bugs/385823-1-ref.html
new file mode 100644
index 000000000000..795fbfbc5d13
--- /dev/null
+++ b/layout/reftests/bugs/385823-1-ref.html
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+ Here's some text following the image.
+ |
+
+
+
diff --git a/layout/reftests/bugs/385823-1.html b/layout/reftests/bugs/385823-1.html
new file mode 100644
index 000000000000..11a78b2aa475
--- /dev/null
+++ b/layout/reftests/bugs/385823-1.html
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+ Here's some text following the image.
+ |
+
+
+
diff --git a/layout/reftests/bugs/385823-2-ref.html b/layout/reftests/bugs/385823-2-ref.html
new file mode 100644
index 000000000000..1c595b8ec535
--- /dev/null
+++ b/layout/reftests/bugs/385823-2-ref.html
@@ -0,0 +1,9 @@
+
+
+
+
+
+ |
+
+
+
diff --git a/layout/reftests/bugs/385823-2a.html b/layout/reftests/bugs/385823-2a.html
new file mode 100644
index 000000000000..1fd3286e418d
--- /dev/null
+++ b/layout/reftests/bugs/385823-2a.html
@@ -0,0 +1,9 @@
+
+
+
+
+
+ |
+
+
+
diff --git a/layout/reftests/bugs/385823-2b.html b/layout/reftests/bugs/385823-2b.html
new file mode 100644
index 000000000000..c9c434ef5014
--- /dev/null
+++ b/layout/reftests/bugs/385823-2b.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+ text text
+ |
+
+
+
diff --git a/layout/reftests/bugs/385823-2c.html b/layout/reftests/bugs/385823-2c.html
new file mode 100644
index 000000000000..706722bfeabc
--- /dev/null
+++ b/layout/reftests/bugs/385823-2c.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+ text text
+ |
+
+
+