Debian Codegraph @

testing/web-platform/mozilla/tests/mathml/tables/mtable-rowalign-single-mtr-dynamic.html

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