diff --git a/layout/reftests/bidi/413928-1-ref.html b/layout/reftests/bidi/413928-1-ref.html
index a814fcd16d8b..e8679fcc84c4 100644
--- a/layout/reftests/bidi/413928-1-ref.html
+++ b/layout/reftests/bidi/413928-1-ref.html
@@ -5,7 +5,7 @@
Bug 413928
diff --git a/layout/reftests/bidi/413928-2-ref.html b/layout/reftests/bidi/413928-2-ref.html
index 41efd95a17ac..5cd9cd76aa52 100644
--- a/layout/reftests/bidi/413928-2-ref.html
+++ b/layout/reftests/bidi/413928-2-ref.html
@@ -5,7 +5,7 @@
Bug 413928
diff --git a/layout/reftests/box-shadow/boxshadow-inner-basic-ref.html b/layout/reftests/box-shadow/boxshadow-inner-basic-ref.html
index a89032165937..9564a01a7d4c 100644
--- a/layout/reftests/box-shadow/boxshadow-inner-basic-ref.html
+++ b/layout/reftests/box-shadow/boxshadow-inner-basic-ref.html
@@ -1 +1,12 @@
-inset
+
+inset
+
+
diff --git a/layout/reftests/box-shadow/boxshadow-inner-basic.html b/layout/reftests/box-shadow/boxshadow-inner-basic.html
index 968e665f3adb..38d402c2e09e 100644
--- a/layout/reftests/box-shadow/boxshadow-inner-basic.html
+++ b/layout/reftests/box-shadow/boxshadow-inner-basic.html
@@ -1 +1,7 @@
-inset
+
+inset
+
diff --git a/layout/reftests/bugs/134706-5-ref.html b/layout/reftests/bugs/134706-5-ref.html
index d6227dcd421c..aa2216f7fe15 100644
--- a/layout/reftests/bugs/134706-5-ref.html
+++ b/layout/reftests/bugs/134706-5-ref.html
@@ -6,6 +6,8 @@
diff --git a/layout/reftests/bugs/134706-5.html b/layout/reftests/bugs/134706-5.html
index 1e56bb08de1c..6cff106c81f4 100644
--- a/layout/reftests/bugs/134706-5.html
+++ b/layout/reftests/bugs/134706-5.html
@@ -6,6 +6,8 @@
-
+
|
diff --git a/layout/reftests/bugs/322436-1-ref.html b/layout/reftests/bugs/322436-1-ref.html
index 52fa2de4bf0d..4e69fda15b54 100644
--- a/layout/reftests/bugs/322436-1-ref.html
+++ b/layout/reftests/bugs/322436-1-ref.html
@@ -6,7 +6,11 @@
There should be floating text here! Look at the source!
-This text should show up
+This text should show up
+
+
diff --git a/layout/reftests/bugs/322436-1.html b/layout/reftests/bugs/322436-1.html
index c6337e4a62bb..64c32a8b8fb1 100644
--- a/layout/reftests/bugs/322436-1.html
+++ b/layout/reftests/bugs/322436-1.html
@@ -6,7 +6,9 @@
There should be floating text here! Look at the source!
-
+
+
+
diff --git a/layout/reftests/bugs/388980-1-ref.html b/layout/reftests/bugs/388980-1-ref.html
index a1b61ae6fda5..5c5e4277f959 100644
--- a/layout/reftests/bugs/388980-1-ref.html
+++ b/layout/reftests/bugs/388980-1-ref.html
@@ -3,7 +3,7 @@
Reftest for bug 388980