Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
1 <?xml version="1.0" encoding="us-ascii"?>
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head>
4 <meta http-equiv="content-type"
5 content="application/xhtml+xml; charset=us-ascii" />
6 <title>Test mstyle</title>
7 <style type="text/css">
8 table { width: 100%; border-collapse: collapse; }
9 td { border: solid black 1px; }
10 </style>
11 </head>
13 <body>
15 <!-- The attributes below should no longer have effect on <mstyle>/<math>
16 elements. See bug 838509 -->
18 <table>
19 <tbody>
20 <tr>
21 <td>mpadded: width</td>
22 <td><math xmlns="http://www.w3.org/1998/Math/MathML" width="1em">
23 <mstyle width="1em">
24 <mtext>_</mtext>
25 <mpadded/>
26 <mtext>_</mtext>
27 </mstyle>
28 </math></td>
29 </tr>
30 <tr>
31 <td>mpadded: lspace</td>
32 <td><math xmlns="http://www.w3.org/1998/Math/MathML" lspace="1em">
33 <mstyle lspace="1em">
34 <mtext>_</mtext>
35 <mpadded/>
36 <mtext>_</mtext>
37 </mstyle>
38 </math></td>
39 </tr>
40 <tr>
41 <td>mpadded: height</td>
42 <td><math xmlns="http://www.w3.org/1998/Math/MathML" height="1em">
43 <mstyle height="1em">
44 <msup>
45 <mrow>
46 <mtext>_</mtext>
47 <mpadded/>
48 <mtext>_</mtext>
49 </mrow>
50 <mtext>_</mtext>
51 </msup>
52 </mstyle>
53 </math></td>
54 </tr>
55 <tr>
56 <td>mpadded: depth</td>
57 <td><math xmlns="http://www.w3.org/1998/Math/MathML" depth="1em">
58 <mstyle depth="1em">
59 <msub>
60 <mrow>
61 <mtext>_</mtext>
62 <mpadded/>
63 <mtext>_</mtext>
64 </mrow>
65 <mtext>_</mtext>
66 </msub>
67 </mstyle>
68 </math></td>
69 </tr>
70 <tr>
71 <td>mspace: width</td>
72 <td><math xmlns="http://www.w3.org/1998/Math/MathML" width="1em">
73 <mstyle width="1em">
74 <mtext>_</mtext>
75 <mspace/>
76 <mtext>_</mtext>
77 </mstyle>
78 </math></td>
79 </tr>
80 <tr>
81 <td>mspace: height</td>
82 <td><math xmlns="http://www.w3.org/1998/Math/MathML" height="1em">
83 <mstyle height="1em">
84 <msup>
85 <mrow>
86 <mtext>_</mtext>
87 <mspace/>
88 <mtext>_</mtext>
89 </mrow>
90 <mtext>_</mtext>
91 </msup>
92 </mstyle>
93 </math></td>
94 </tr>
95 <tr>
96 <td>mspace: depth</td>
97 <td><math xmlns="http://www.w3.org/1998/Math/MathML" depth="1em">
98 <mstyle depth="1em">
99 <msub>
100 <mrow>
101 <mtext>_</mtext>
102 <mspace/>
103 <mtext>_</mtext>
104 </mrow>
105 <mtext>_</mtext>
106 </msub>
107 </mstyle>
108 </math></td>
109 </tr>
110 <tr>
111 <td>maction: selection</td>
112 <td><math xmlns="http://www.w3.org/1998/Math/MathML" selection="2">
113 <mstyle selection="2">
114 <maction actiontype="toggle">
115 <mn>1</mn>
116 <mn>2</mn>
117 </maction>
118 </mstyle>
119 </math></td>
120 </tr>
121 <tr>
122 <td>mtable: align</td>
123 <td><math xmlns="http://www.w3.org/1998/Math/MathML" align="baseline">
124 <mstyle align="baseline">
125 <mrow>
126 <mtext>_</mtext>
127 <mtable>
128 <mtr>
129 <mtd>
130 <mtext>―</mtext>
131 </mtd>
132 </mtr>
133 <mtr>
134 <mtd>
135 <mtext>―</mtext>
136 </mtd>
137 </mtr>
138 </mtable>
139 <mtext>_</mtext>
140 </mrow>
141 </mstyle>
142 </math></td>
143 </tr>
144 </tbody>
145 </table>
146 </body>
147 </html>