diff --git a/layout/reftests/mathml/columnlines-1-ref.html b/layout/reftests/mathml/columnlines-1-ref.html
new file mode 100644
index 00000000000..e5ea01a7deb
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-1-ref.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-1a.html b/layout/reftests/mathml/columnlines-1a.html
new file mode 100644
index 00000000000..3f391c29665
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-1a.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-1b.html b/layout/reftests/mathml/columnlines-1b.html
new file mode 100644
index 00000000000..9ee1a3e35fe
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-1b.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-1c.html b/layout/reftests/mathml/columnlines-1c.html
new file mode 100644
index 00000000000..d1bd0d7ce37
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-1c.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-2-ref.html b/layout/reftests/mathml/columnlines-2-ref.html
new file mode 100644
index 00000000000..84c96c5fe3c
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-2-ref.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-2a.html b/layout/reftests/mathml/columnlines-2a.html
new file mode 100644
index 00000000000..ea3ed5abe09
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-2a.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-2b.html b/layout/reftests/mathml/columnlines-2b.html
new file mode 100644
index 00000000000..36182d60ad2
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-2b.html
@@ -0,0 +1,41 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-3-1-ref.html b/layout/reftests/mathml/columnlines-3-1-ref.html
new file mode 100644
index 00000000000..ce49f5dad45
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-3-1-ref.html
@@ -0,0 +1,32 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-3-1.html b/layout/reftests/mathml/columnlines-3-1.html
new file mode 100644
index 00000000000..80c46858e63
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-3-1.html
@@ -0,0 +1,48 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-3-2-ref.html b/layout/reftests/mathml/columnlines-3-2-ref.html
new file mode 100644
index 00000000000..6549ad52633
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-3-2-ref.html
@@ -0,0 +1,32 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/columnlines-3-2.html b/layout/reftests/mathml/columnlines-3-2.html
new file mode 100644
index 00000000000..789013d9f0b
--- /dev/null
+++ b/layout/reftests/mathml/columnlines-3-2.html
@@ -0,0 +1,48 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/reftest.list b/layout/reftests/mathml/reftest.list
index 7590d05795a..1d932c4753b 100644
--- a/layout/reftests/mathml/reftest.list
+++ b/layout/reftests/mathml/reftest.list
@@ -244,4 +244,18 @@ fuzzy-if(OSX,1,100) == menclose-5-circle.html menclose-5-circle-ref.html
== mo-accent-dynamic.html mo-accent-dynamic-ref.html
== mo-movablelimits-dynamic.html mo-movablelimits-dynamic-ref.html
== munderover-accent-dynamic.html munderover-accent-dynamic-ref.html
-== munderover-accentunder-dynamic.html munderover-accentunder-dynamic-ref.html
\ No newline at end of file
+== munderover-accentunder-dynamic.html munderover-accentunder-dynamic-ref.html
+== columnlines-1a.html columnlines-1-ref.html
+!= columnlines-1b.html columnlines-1-ref.html
+!= columnlines-1c.html columnlines-1-ref.html
+== columnlines-2a.html columnlines-2-ref.html
+== columnlines-2b.html columnlines-2-ref.html
+!= columnlines-3-1.html columnlines-3-1-ref.html
+== columnlines-3-2.html columnlines-3-2-ref.html
+== rowlines-1a.html rowlines-1-ref.html
+!= rowlines-1b.html rowlines-1-ref.html
+!= rowlines-1c.html rowlines-1-ref.html
+== rowlines-2a.html rowlines-2-ref.html
+== rowlines-2b.html rowlines-2-ref.html
+!= rowlines-3-1.html rowlines-3-1-ref.html
+== rowlines-3-2.html rowlines-3-2-ref.html
diff --git a/layout/reftests/mathml/rowlines-1-ref.html b/layout/reftests/mathml/rowlines-1-ref.html
new file mode 100644
index 00000000000..e5ea01a7deb
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-1-ref.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-1a.html b/layout/reftests/mathml/rowlines-1a.html
new file mode 100644
index 00000000000..51073e3d514
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-1a.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-1b.html b/layout/reftests/mathml/rowlines-1b.html
new file mode 100644
index 00000000000..860edda5940
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-1b.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-1c.html b/layout/reftests/mathml/rowlines-1c.html
new file mode 100644
index 00000000000..dd51f155f78
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-1c.html
@@ -0,0 +1,77 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-2-ref.html b/layout/reftests/mathml/rowlines-2-ref.html
new file mode 100644
index 00000000000..f66962bad6a
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-2-ref.html
@@ -0,0 +1,51 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-2a.html b/layout/reftests/mathml/rowlines-2a.html
new file mode 100644
index 00000000000..2dfa6cb04a4
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-2a.html
@@ -0,0 +1,51 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-2b.html b/layout/reftests/mathml/rowlines-2b.html
new file mode 100644
index 00000000000..3489239d142
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-2b.html
@@ -0,0 +1,51 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-3-1-ref.html b/layout/reftests/mathml/rowlines-3-1-ref.html
new file mode 100644
index 00000000000..9f292f7ce65
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-3-1-ref.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-3-1.html b/layout/reftests/mathml/rowlines-3-1.html
new file mode 100644
index 00000000000..e40b2b7faf8
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-3-1.html
@@ -0,0 +1,53 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-3-2-ref.html b/layout/reftests/mathml/rowlines-3-2-ref.html
new file mode 100644
index 00000000000..01fe8ad0d4a
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-3-2-ref.html
@@ -0,0 +1,34 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/layout/reftests/mathml/rowlines-3-2.html b/layout/reftests/mathml/rowlines-3-2.html
new file mode 100644
index 00000000000..685970faf9e
--- /dev/null
+++ b/layout/reftests/mathml/rowlines-3-2.html
@@ -0,0 +1,53 @@
+
+
+
+
+
+ mtable frame
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+