Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <!DOCTYPE>
2 <html class="reftest-wait">
3 <head>
4 <title>Test MathML rowalign</title>
5 <script type="text/javascript">
6 function doTest()
7 {
8 var table1 = document.getElementById("table1");
9 var table2 = document.getElementById("table2");
10 var table3 = document.getElementById("table3");
12 // Table 1 setup
13 table1.setAttribute("rowalign", "top center bottom");
14 // Table 2 setup
15 table2.setAttribute("rowalign", "bottom top center");
16 // Table 3 setup
17 table3.setAttribute("rowalign", "center bottom top");
19 document.documentElement.removeAttribute("class");
20 }
21 window.addEventListener("MozReftestInvalidate", doTest, false);
22 </script>
23 </head>
24 <body>
25 <b>rowalign="top center bottom"</b> <br/>
26 <math>
27 <mstyle>
28 <mtable id="table1">
29 <mtr>
30 <mtd>
31 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
32 </mtd>
33 <mtd>
34 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
35 </mtd>
36 <mtd>
37 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
38 </mtd>
39 </mtr>
40 <mtr>
41 <mtd>
42 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
43 </mtd>
44 <mtd>
45 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
46 </mtd>
47 <mtd>
48 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
49 </mtd>
50 </mtr>
51 <mtr>
52 <mtd>
53 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
54 </mtd>
55 <mtd>
56 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
57 </mtd>
58 <mtd>
59 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
60 </mtd>
61 </mtr>
62 </mtable>
63 </mstyle>
64 </math> <br />
65 <b>rowalign="bottom top center"</b> <br />
66 <math>
67 <mstyle>
68 <mtable id="table2">
69 <mtr>
70 <mtd>
71 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
72 </mtd>
73 <mtd>
74 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
75 </mtd>
76 <mtd>
77 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
78 </mtd>
79 </mtr>
80 <mtr>
81 <mtd>
82 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
83 </mtd>
84 <mtd>
85 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
86 </mtd>
87 <mtd>
88 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
89 </mtd>
90 </mtr>
91 <mtr>
92 <mtd>
93 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
94 </mtd>
95 <mtd>
96 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
97 </mtd>
98 <mtd>
99 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
100 </mtd>
101 </mtr>
102 </mtable>
103 </mstyle>
104 </math> <br />
105 <b>rowalign="center bottom top"</b> <br />
106 <math>
107 <mstyle>
108 <mtable id="table3">
109 <mtr>
110 <mtd>
111 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
112 </mtd>
113 <mtd>
114 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
115 </mtd>
116 <mtd>
117 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
118 </mtd>
119 </mtr>
120 <mtr>
121 <mtd>
122 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
123 </mtd>
124 <mtd>
125 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
126 </mtd>
127 <mtd>
128 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
129 </mtd>
130 </mtr>
131 <mtr>
132 <mtd>
133 <mspace width="10px" depth="5px" height="5px" mathbackground="red"></mspace>
134 </mtd>
135 <mtd>
136 <mspace width="10px" depth="10px" height="10px" mathbackground="green"></mspace>
137 </mtd>
138 <mtd>
139 <mspace width="10px" depth="15px" height="15px" mathbackground="blue"></mspace>
140 </mtd>
141 </mtr>
142 </mtable>
143 </mstyle>
144 </math>
145 </body>
146 </html>