diff --git a/layout/reftests/css-ruby/box-properties-2-ref.html b/layout/reftests/css-ruby/box-properties-2-ref.html
index 2c8ca8d69043..8bf2d754c2d4 100644
--- a/layout/reftests/css-ruby/box-properties-2-ref.html
+++ b/layout/reftests/css-ruby/box-properties-2-ref.html
@@ -6,14 +6,15 @@
-
+
base1
base3
diff --git a/layout/reftests/css-ruby/box-properties-2.html b/layout/reftests/css-ruby/box-properties-2.html
index ae9f15283845..6b936303996f 100644
--- a/layout/reftests/css-ruby/box-properties-2.html
+++ b/layout/reftests/css-ruby/box-properties-2.html
@@ -6,7 +6,7 @@
-
+
base1
diff --git a/layout/reftests/css-ruby/box-properties-3-ref.html b/layout/reftests/css-ruby/box-properties-3-ref.html
index a9e87f0574a5..465e54758463 100644
--- a/layout/reftests/css-ruby/box-properties-3-ref.html
+++ b/layout/reftests/css-ruby/box-properties-3-ref.html
@@ -11,7 +11,7 @@
base1
diff --git a/layout/reftests/css-ruby/intra-level-whitespace-1-ref.html b/layout/reftests/css-ruby/intra-level-whitespace-1-ref.html
index 502452166fbc..7cc1050325cf 100644
--- a/layout/reftests/css-ruby/intra-level-whitespace-1-ref.html
+++ b/layout/reftests/css-ruby/intra-level-whitespace-1-ref.html
@@ -12,7 +12,7 @@
a b
-
+
ab
diff --git a/layout/reftests/css-ruby/line-height-1-ref.html b/layout/reftests/css-ruby/line-height-1-ref.html
index f12eb3ea567c..414ad51c7274 100644
--- a/layout/reftests/css-ruby/line-height-1-ref.html
+++ b/layout/reftests/css-ruby/line-height-1-ref.html
@@ -7,11 +7,15 @@
- base
+
+ base
+ text
+
diff --git a/layout/reftests/css-ruby/line-height-2-ref.html b/layout/reftests/css-ruby/line-height-2-ref.html
index 9ed54600be19..58d6435c7bca 100644
--- a/layout/reftests/css-ruby/line-height-2-ref.html
+++ b/layout/reftests/css-ruby/line-height-2-ref.html
@@ -7,12 +7,16 @@
- base
+
+ base
+ text
+
next line