diff --git a/layout/reftests/bugs/18217-zorder-3.html b/layout/reftests/bugs/18217-zorder-3.html
index 4ede8d53c88..dbf424b309d 100644
--- a/layout/reftests/bugs/18217-zorder-3.html
+++ b/layout/reftests/bugs/18217-zorder-3.html
@@ -6,7 +6,7 @@
div { height: 1em; }
span { display:inline-table; vertical-align: top; height: 1em; background: red; color: red; }
div#after { margin-top:-1em; }
-div#after span { display: inline; background: green; color: green; }
+div#after span { display: inline; background: green; color: green; border-bottom: 0.5em solid green; }
diff --git a/layout/reftests/bugs/18217-zorder-4.html b/layout/reftests/bugs/18217-zorder-4.html
index ecf5fa4eaed..2bc7f636d8c 100644
--- a/layout/reftests/bugs/18217-zorder-4.html
+++ b/layout/reftests/bugs/18217-zorder-4.html
@@ -3,7 +3,7 @@
Testcase for inline-table (bug 18217)
diff --git a/layout/reftests/bugs/18217-zorder-5.html b/layout/reftests/bugs/18217-zorder-5.html
index 943cb1c6c5b..daad6e0ff6e 100644
--- a/layout/reftests/bugs/18217-zorder-5.html
+++ b/layout/reftests/bugs/18217-zorder-5.html
@@ -4,7 +4,7 @@
Testcase for inline-table (bug 18217)
diff --git a/layout/reftests/bugs/18217-zorder-ref-inline-table.html b/layout/reftests/bugs/18217-zorder-ref-inline-table.html
new file mode 100644
index 00000000000..525e3b17ae8
--- /dev/null
+++ b/layout/reftests/bugs/18217-zorder-ref-inline-table.html
@@ -0,0 +1,12 @@
+
+
+
+Testcase for inline-table (bug 18217)
+
+
+
+X
+
+
diff --git a/layout/reftests/bugs/18217-zorder-ref-inline.html b/layout/reftests/bugs/18217-zorder-ref-inline.html
index 14eb099f23a..fc7535282d6 100644
--- a/layout/reftests/bugs/18217-zorder-ref-inline.html
+++ b/layout/reftests/bugs/18217-zorder-ref-inline.html
@@ -3,7 +3,7 @@
Testcase for inline-table (bug 18217)
diff --git a/layout/reftests/bugs/9458-zorder-3.html b/layout/reftests/bugs/9458-zorder-3.html
index 4b50436c741..5248e8c5d85 100644
--- a/layout/reftests/bugs/9458-zorder-3.html
+++ b/layout/reftests/bugs/9458-zorder-3.html
@@ -6,7 +6,7 @@
div { height: 1em; }
span { display:inline-block; vertical-align: top; height: 1em; background: red; color: red; }
div#after { margin-top:-1em; }
-div#after span { display: inline; background: green; color: green; }
+div#after span { display: inline; background: green; color: green; border-bottom: 0.5em solid green; }
diff --git a/layout/reftests/bugs/9458-zorder-4.html b/layout/reftests/bugs/9458-zorder-4.html
index f4bf84c2db7..20fdd36ae0e 100644
--- a/layout/reftests/bugs/9458-zorder-4.html
+++ b/layout/reftests/bugs/9458-zorder-4.html
@@ -3,7 +3,7 @@
Testcase for inline-block (bug 9458)
diff --git a/layout/reftests/bugs/9458-zorder-5.html b/layout/reftests/bugs/9458-zorder-5.html
index cb184eca299..f2b16a7caa4 100644
--- a/layout/reftests/bugs/9458-zorder-5.html
+++ b/layout/reftests/bugs/9458-zorder-5.html
@@ -4,7 +4,7 @@
Testcase for inline-block (bug 9458)
diff --git a/layout/reftests/bugs/9458-zorder-ref-inline-block.html b/layout/reftests/bugs/9458-zorder-ref-inline-block.html
new file mode 100644
index 00000000000..a58c011dbef
--- /dev/null
+++ b/layout/reftests/bugs/9458-zorder-ref-inline-block.html
@@ -0,0 +1,12 @@
+
+
+
+Testcase for inline-block (bug 9458)
+
+
+
+X
+
+
diff --git a/layout/reftests/bugs/9458-zorder-ref-inline.html b/layout/reftests/bugs/9458-zorder-ref-inline.html
index b6a92b28648..1357d4ba6e4 100644
--- a/layout/reftests/bugs/9458-zorder-ref-inline.html
+++ b/layout/reftests/bugs/9458-zorder-ref-inline.html
@@ -3,7 +3,7 @@
Testcase for inline-block (bug 9458)
diff --git a/layout/reftests/reftest.list b/layout/reftests/reftest.list
index d9974ab5270..ba506ed928d 100644
--- a/layout/reftests/reftest.list
+++ b/layout/reftests/reftest.list
@@ -16,8 +16,8 @@
== bugs/9458-zorder-1.html bugs/9458-zorder-ref.html
== bugs/9458-zorder-2.html bugs/9458-zorder-ref.html
== bugs/9458-zorder-3.html bugs/9458-zorder-ref-inline.html
-== bugs/9458-zorder-4.html bugs/9458-zorder-ref-inline.html
-== bugs/9458-zorder-5.html bugs/9458-zorder-ref-inline.html
+== bugs/9458-zorder-4.html bugs/9458-zorder-ref-inline-block.html
+== bugs/9458-zorder-5.html bugs/9458-zorder-ref-inline-block.html
== bugs/18217-basic-1.html bugs/18217-basic-1-ref.html
== bugs/18217-basic-2a.html bugs/18217-basic-2-ref.html
== bugs/18217-basic-2b.html bugs/18217-basic-2-ref.html
@@ -31,8 +31,8 @@
== bugs/18217-zorder-1.html bugs/18217-zorder-ref.html
== bugs/18217-zorder-2.html bugs/18217-zorder-ref.html
== bugs/18217-zorder-3.html bugs/18217-zorder-ref-inline.html
-== bugs/18217-zorder-4.html bugs/18217-zorder-ref-inline.html
-== bugs/18217-zorder-5.html bugs/18217-zorder-ref-inline.html
+== bugs/18217-zorder-4.html bugs/18217-zorder-ref-inline-table.html
+== bugs/18217-zorder-5.html bugs/18217-zorder-ref-inline-table.html
== bugs/28811-1a.html bugs/28811-1-ref.html
== bugs/28811-1b.html bugs/28811-1-ref.html
== bugs/28811-2a.html bugs/28811-2-ref.html