Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 <!DOCTYPE html>
2 <html>
3 <head><title>Test dir=rtl</title></head>
4 <body style="background: white;">
6 <!-- The visible part of the formulas below should be covered by the
7 black rectangle when dir=rtl -->
9 <div style="position: absolute; top: 5px; left: 5px;">
10 <!-- msup -->
11 <math dir="rtl">
12 <msup>
13 <mspace width="20px" height="20px"/>
14 <mspace width="20px" height="20px" mathbackground="red"/>
15 </msup>
16 </math><br/>
17 <!-- msub -->
18 <math dir="rtl">
19 <msub>
20 <mspace width="20px" height="20px"/>
21 <mspace width="20px" height="20px" mathbackground="orange"/>
22 </msub>
23 </math><br/>
24 <!-- msubsup -->
25 <math dir="rtl">
26 <msubsup>
27 <mspace width="20px" height="20px"/>
28 <mspace width="20px" height="20px" mathbackground="green"/>
29 <mspace width="20px" height="20px" mathbackground="blue"/>
30 </msubsup>
31 </math><br/>
32 <!-- mmultiscripts -->
33 <math dir="rtl">
34 <mmultiscripts>
35 <mspace/>
36 <mspace width="20px" height="20px" mathbackground="cyan"/>
37 <mspace width="20px" height="20px" mathbackground="yellow"/>
38 <mprescripts/>
39 <mspace width="20px" height="20px"/>
40 <mspace width="20px" height="20px"/>
41 </mmultiscripts>
42 </math><br/>
43 <!-- munder (mo with movablelimits=true and displaystyle=false) -->
44 <math dir="rtl">
45 <munder>
46 <mpadded width="20px">
47 <mphantom>
48 <mo movablelimits="true" displaystyle="false">|</mo>
49 </mphantom>
50 </mpadded>
51 <mspace width="20px" height="20px" mathbackground="magenta"/>
52 </munder>
53 </math><br/>
54 <!-- mover (mo with movablelimits=true and displaystyle=false) -->
55 <math dir="rtl">
56 <mover>
57 <mpadded width="20px">
58 <mphantom>
59 <mo movablelimits="true" displaystyle="false">|</mo>
60 </mphantom>
61 </mpadded>
62 <mspace width="20px" height="20px" mathbackground="cyan"/>
63 </mover>
64 </math><br/>
65 <!-- munderover (mo with movablelimits=true and displaystyle=false) -->
66 <math dir="rtl">
67 <munderover>
68 <mpadded width="20px">
69 <mphantom>
70 <mo movablelimits="true" displaystyle="false">|</mo>
71 </mphantom>
72 </mpadded>
73 <mspace width="20px" height="20px" mathbackground="yellow"/>
74 <mspace width="20px" height="20px" mathbackground="grey"/>
75 </munderover>
76 </math><br/>
77 <!-- mfrac (bevelled=true) -->
78 <math dir="rtl">
79 <mstyle mathcolor="white">
80 <mfrac bevelled="true">
81 <mspace width="20px" height="20px"/>
82 <mspace width="20px" height="20px" mathbackground="red"/>
83 </mfrac>
84 </mstyle>
85 </math><br/>
86 <!-- mroot -->
87 <math dir="rtl">
88 <mstyle mathcolor="white">
89 <mroot>
90 <mspace width="20px" height="20px" mathbackground="orange"/>
91 <mspace width="20px" height="20px"/>
92 </mroot>
93 </mstyle>
94 </math><br/>
95 <!-- msqrt -->
96 <math dir="rtl">
97 <mstyle mathcolor="white">
98 <msqrt>
99 <!-- Here, we assume that (width of radical + width of mspace)
100 is greater than the width of the black rectangle (i.e.
101 width of radical > 30 - 25 = 5px), so the test fails if the
102 radical is placed on the left. -->
103 <mspace width="25px" height="20px" mathbackground="grey"/>
104 </msqrt>
105 </mstyle>
106 </math>
107 </div>
109 <div style="position: absolute; top: 5px; left: 5px;">
110 <div style="width: 30px; height: 500px; background: black;"></div>
111 </div>
113 </body>
114 </html>