diff --git a/layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html b/layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html
new file mode 100644
index 000000000000..20974a55f313
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-multi-mtable-dynamic.html
@@ -0,0 +1,146 @@
+
+
+
+ Test MathML columnalign
+
+
+
+ columnalign="left center right"
+
+ columnalign="right left center"
+
+ columnalign="center right left"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-multi-mtable.html b/layout/reftests/mathml/mtable-columnalign-multi-mtable.html
new file mode 100644
index 000000000000..e74ea9e3c58c
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-multi-mtable.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML columnalign
+
+
+ columnalign="left center right"
+
+ columnalign="right left center"
+
+ columnalign="center right left"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html b/layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html
new file mode 100644
index 000000000000..0d6b65af774f
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html
@@ -0,0 +1,155 @@
+
+
+
+ Test MathML columnalign
+
+
+
+ columnalign="left center right"
+
+ columnalign="right left center"
+
+ columnalign="center right left"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-multi-mtr.html b/layout/reftests/mathml/mtable-columnalign-multi-mtr.html
new file mode 100644
index 000000000000..cc4cdc87f2d5
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-multi-mtr.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML columnalign
+
+
+ columnalign="left center right"
+
+ columnalign="right left center"
+
+ columnalign="center right left"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-multi-ref.html b/layout/reftests/mathml/mtable-columnalign-multi-ref.html
new file mode 100644
index 000000000000..4ee19aa0808c
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-multi-ref.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML columnalign
+
+
+ columnalign="left center right"
+
+ columnalign="right left center"
+
+ columnalign="center right left"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html b/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html
new file mode 100644
index 000000000000..d01f7a5014cc
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtable-dynamic.html
@@ -0,0 +1,146 @@
+
+
+
+ Test MathML columnalign
+
+
+
+ columnalign="left"
+
+ columnalign="center"
+
+ columnalign="right"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-single-mtable.html b/layout/reftests/mathml/mtable-columnalign-single-mtable.html
new file mode 100644
index 000000000000..a3ebec777684
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtable.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML columnalign
+
+
+ columnalign="left"
+
+ columnalign="center"
+
+ columnalign="right"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html b/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html
new file mode 100644
index 000000000000..11112dfa0276
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html
@@ -0,0 +1,155 @@
+
+
+
+ Test MathML columnalign
+
+
+
+ columnalign="left"
+
+ columnalign="center"
+
+ columnalign="right"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-single-mtr.html b/layout/reftests/mathml/mtable-columnalign-single-mtr.html
new file mode 100644
index 000000000000..f8003ed8ee38
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtr.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML columnalign
+
+
+ columnalign="left"
+
+ columnalign="center"
+
+ columnalign="right"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnalign-single-ref.html b/layout/reftests/mathml/mtable-columnalign-single-ref.html
new file mode 100644
index 000000000000..fb926b38fbe7
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-single-ref.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML columnalign
+
+
+ columnalign="left"
+
+ columnalign="center"
+
+ columnalign="right"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html b/layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html
new file mode 100644
index 000000000000..643fa6ffc08f
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnlines-multi-mtable-dynamic.html
@@ -0,0 +1,105 @@
+
+
+
+ Test MathML columnlines
+
+
+
+ columnlines="solid dashed"
+
+ columnlines="dashed solid"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnlines-multi-ref.html b/layout/reftests/mathml/mtable-columnlines-multi-ref.html
new file mode 100644
index 000000000000..7b10b4e25e37
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnlines-multi-ref.html
@@ -0,0 +1,90 @@
+
+
+
+ Test MathML columnlines
+
+
+ columnlines="solid dashed"
+
+ columnlines="dashed solid"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html b/layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html
new file mode 100644
index 000000000000..6b77fb8ebee2
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnlines-single-mtable-dynamic.html
@@ -0,0 +1,105 @@
+
+
+
+ Test MathML columnlines
+
+
+
+ columnlines="solid"
+
+ columnlines="dashed"
+
+
+
diff --git a/layout/reftests/mathml/mtable-columnlines-single-ref.html b/layout/reftests/mathml/mtable-columnlines-single-ref.html
new file mode 100644
index 000000000000..7a2749156a6c
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnlines-single-ref.html
@@ -0,0 +1,90 @@
+
+
+
+ Test MathML columnlines
+
+
+ columnlines="solid"
+
+ columnlines="dashed"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html b/layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html
new file mode 100644
index 000000000000..9bcfa2f203b1
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowalign-multi-mtable-dynamic.html
@@ -0,0 +1,146 @@
+
+
+
+ Test MathML rowalign
+
+
+
+ rowalign="top center bottom"
+
+ rowalign="bottom top center"
+
+ rowalign="center bottom top"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowalign-multi-mtable.html b/layout/reftests/mathml/mtable-rowalign-multi-mtable.html
new file mode 100644
index 000000000000..bc3493cf15b4
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowalign-multi-mtable.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML rowalign
+
+
+ rowalign="top center bottom"
+
+ rowalign="bottom top center"
+
+ rowalign="center bottom top"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowalign-multi-ref.html b/layout/reftests/mathml/mtable-rowalign-multi-ref.html
new file mode 100644
index 000000000000..a39eab436cf9
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowalign-multi-ref.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML rowalign
+
+
+ rowalign="top center bottom"
+
+ rowalign="bottom top center"
+
+ rowalign="center bottom top"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html b/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html
new file mode 100644
index 000000000000..a147b8e7872b
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowalign-single-mtable-dynamic.html
@@ -0,0 +1,146 @@
+
+
+
+ Test MathML rowalign
+
+
+
+ rowalign="top"
+
+ rowalign="center"
+
+ rowalign="bottom"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowalign-single-mtable.html b/layout/reftests/mathml/mtable-rowalign-single-mtable.html
new file mode 100644
index 000000000000..efa7ef711e9d
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowalign-single-mtable.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML rowalign
+
+
+ rowalign="top"
+
+ rowalign="center"
+
+ rowalign="bottom"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html b/layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html
new file mode 100644
index 000000000000..e7152776c88b
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowalign-single-mtr-dynamic.html
@@ -0,0 +1,155 @@
+
+
+
+ Test MathML rowalign
+
+
+
+ rowalign="top"
+
+ rowalign="center"
+
+ rowalign="bottom"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowalign-single-mtr.html b/layout/reftests/mathml/mtable-rowalign-single-mtr.html
new file mode 100644
index 000000000000..9057e1115aef
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowalign-single-mtr.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML rowalign
+
+
+ rowalign="top"
+
+ rowalign="center"
+
+ rowalign="bottom"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowalign-single-ref.html b/layout/reftests/mathml/mtable-rowalign-single-ref.html
new file mode 100644
index 000000000000..786f5f3e7b69
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowalign-single-ref.html
@@ -0,0 +1,128 @@
+
+
+
+ Test MathML rowalign
+
+
+ rowalign="top"
+
+ rowalign="center"
+
+ rowalign="bottom"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html b/layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html
new file mode 100644
index 000000000000..bbf203568cc9
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowlines-multi-mtable-dynamic.html
@@ -0,0 +1,105 @@
+
+
+
+ Test MathML rowlines
+
+
+
+ rowlines="solid dashed"
+
+ rowlines="dashed solid"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowlines-multi-ref.html b/layout/reftests/mathml/mtable-rowlines-multi-ref.html
new file mode 100644
index 000000000000..3562ba0c73fe
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowlines-multi-ref.html
@@ -0,0 +1,90 @@
+
+
+
+ Test MathML rowlines
+
+
+ rowlines="solid dashed"
+
+ rowlines="dashed solid"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html b/layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html
new file mode 100644
index 000000000000..3b5bd3c7c0b3
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowlines-single-mtable-dynamic.html
@@ -0,0 +1,105 @@
+
+
+
+ Test MathML rowlines
+
+
+
+ rowlines="solid"
+
+ rowlines="dashed"
+
+
+
diff --git a/layout/reftests/mathml/mtable-rowlines-single-ref.html b/layout/reftests/mathml/mtable-rowlines-single-ref.html
new file mode 100644
index 000000000000..9ffc887eb07e
--- /dev/null
+++ b/layout/reftests/mathml/mtable-rowlines-single-ref.html
@@ -0,0 +1,90 @@
+
+
+
+ Test MathML rowlines
+
+
+ rowlines="solid"
+
+ rowlines="dashed"
+
+
+
diff --git a/layout/reftests/mathml/reftest.list b/layout/reftests/mathml/reftest.list
index 31cb3f47099e..fd34c60730b7 100644
--- a/layout/reftests/mathml/reftest.list
+++ b/layout/reftests/mathml/reftest.list
@@ -113,6 +113,24 @@ fails == mstyle-5.xhtml mstyle-5-ref.xhtml # Bug 787215
== positive-namedspace.html positive-namedspace-ref.html
== mtable-align-whitespace.html mtable-align-whitespace-ref.html
== mtable-width.html mtable-width-ref.html
+== mtable-rowlines-single-mtable-dynamic.html mtable-rowlines-single-ref.html
+== mtable-rowlines-multi-mtable-dynamic.html mtable-rowlines-multi-ref.html
+== mtable-rowalign-single-mtr.html mtable-rowalign-single-ref.html
+== mtable-rowalign-single-mtr-dynamic.html mtable-rowalign-single-ref.html
+== mtable-rowalign-single-mtable.html mtable-rowalign-single-ref.html
+== mtable-rowalign-single-mtable-dynamic.html mtable-rowalign-single-ref.html
+== mtable-rowalign-multi-mtable.html mtable-rowalign-multi-ref.html
+== mtable-rowalign-multi-mtable-dynamic.html mtable-rowalign-multi-ref.html
+== mtable-columnlines-single-mtable-dynamic.html mtable-columnlines-single-ref.html
+== mtable-columnlines-multi-mtable-dynamic.html mtable-columnlines-multi-ref.html
+== mtable-columnalign-single-mtr.html mtable-columnalign-single-ref.html
+== mtable-columnalign-single-mtr-dynamic.html mtable-columnalign-single-ref.html
+== mtable-columnalign-single-mtable.html mtable-columnalign-single-ref.html
+== mtable-columnalign-single-mtable-dynamic.html mtable-columnalign-single-ref.html
+== mtable-columnalign-multi-mtr.html mtable-columnalign-multi-ref.html
+== mtable-columnalign-multi-mtr-dynamic.html mtable-columnalign-multi-ref.html
+== mtable-columnalign-multi-mtable.html mtable-columnalign-multi-ref.html
+== mtable-columnalign-multi-mtable-dynamic.html mtable-columnalign-multi-ref.html
== maction-selection.html maction-selection-ref.html
== maction-dynamic-embellished-op.html maction-dynamic-embellished-op-ref.html
skip-if(B2G) == maction-dynamic-1.html maction-dynamic-1-ref.html # bug 773482