summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html')
-rw-r--r--layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html155
1 files changed, 155 insertions, 0 deletions
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 000000000..cad17b550
--- /dev/null
+++ b/layout/reftests/mathml/mtable-columnalign-single-mtr-dynamic.html
@@ -0,0 +1,155 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+ <title>Test MathML columnalign</title>
+ <script type="text/javascript">
+ function doTest()
+ {
+ var table1 = document.getElementById("table1");
+ var table2 = document.getElementById("table2");
+ var table3 = document.getElementById("table3");
+ var rows = undefined;
+
+ // Table 1 setup
+ rows = table1.getElementsByTagName("mtr");
+ for(var i = 0; i < rows.length; i++)
+ rows[i].setAttribute("columnalign", "left");
+
+ // Table 2 setup
+ rows = table2.getElementsByTagName("mtr");
+ for(var i = 0; i < rows.length; i++)
+ rows[i].setAttribute("columnalign", "center");
+
+ // Table 3 setup
+ rows = table3.getElementsByTagName("mtr");
+ for(var i = 0; i < rows.length; i++)
+ rows[i].setAttribute("columnalign", "right");
+
+ document.documentElement.removeAttribute("class");
+ }
+ window.addEventListener("MozReftestInvalidate", doTest, false);
+ </script>
+ </head>
+ <body>
+ <b>columnalign="left"</b> <br />
+ <math>
+ <mstyle>
+ <mtable id="table1">
+ <mtr>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ </mtr>
+ </mtable>
+ </mstyle>
+ </math> <br />
+ <b>columnalign="center"</b> <br />
+ <math>
+ <mstyle>
+ <mtable id="table2">
+ <mtr>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ </mtr>
+ </mtable>
+ </mstyle>
+ </math> <br />
+ <b>columnalign="right"</b> <br />
+ <math>
+ <mstyle>
+ <mtable id="table3">
+ <mtr>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ <mtd>
+ <mtext>123</mtext>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ <mtd>
+ <mtext>12345</mtext>
+ </mtd>
+ </mtr>
+ <mtr>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ <mtd>
+ <mtext>1234567</mtext>
+ </mtd>
+ </mtr>
+ </mtable>
+ </mstyle>
+ </math>
+ </body>
+</html>