diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html')
-rw-r--r-- | layout/reftests/mathml/mtable-columnalign-multi-mtr-dynamic.html | 155 |
1 files changed, 155 insertions, 0 deletions
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 0000000000..24ea0f0720 --- /dev/null +++ b/layout/reftests/mathml/mtable-columnalign-multi-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 center right"); + + // Table 2 setup + rows = table2.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("columnalign", "right left center"); + + // Table 3 setup + rows = table3.getElementsByTagName("mtr"); + for(var i = 0; i < rows.length; i++) + rows[i].setAttribute("columnalign", "center right left"); + + document.documentElement.removeAttribute("class"); + } + window.addEventListener("MozReftestInvalidate", doTest); + </script> + </head> + <body> + <b>columnalign="left center right"</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="right left 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="center right left"</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> |