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>
6 <!-- mmultiscripts. The formulas
8 1 3 3 1
9 X in dir=ltr and X in dir=rtl
10 2 4 4 2
12 do not match perfectly, so we use an alternative == reftest here
13 which is less strict. -->
15 <!-- five vertical bands: red, green, magenta, blue and yellow -->
16 <div style="position: absolute;
17 top: 5px; left: 5px; width: 200px; height: 200px;">
18 <div style="position: absolute; width: 40px; height: 200px;
19 left: 0px; background: red;"></div>
20 <div style="position: absolute; width: 40px; height: 200px;
21 left: 40px; background: green;"></div>
22 <div style="position: absolute; width: 40px; height: 200px;
23 left: 80px; background: magenta;"></div>
24 <div style="position: absolute; width: 40px; height: 200px;
25 left: 120px; background: blue;"></div>
26 <div style="position: absolute; width: 40px; height: 200px;
27 left: 160px; background: yellow;"></div>
28 </div>
30 <!-- a mmultiscripts element whose children are squares of different
31 colors. In dir=rtl, the color of each square should match the one of
32 the band over which the square is positioned. Hence, this
33 mmultiscripts should not be visible. -->
34 <div style="position: absolute;
35 top: 5px; left: 5px; width: 200px; height: 200px;">
36 <math dir="rtl">
37 <mmultiscripts>
38 <mspace width="40px" height="40px" mathbackground="magenta"/>
40 <mspace width="40px" height="40px" mathbackground="green"/>
41 <mspace width="40px" height="40px" mathbackground="green"/>
43 <mspace width="40px" height="40px" mathbackground="red"/>
44 <mspace width="40px" height="40px" mathbackground="red"/>
46 <mprescripts/>
48 <mspace width="40px" height="40px" mathbackground="yellow"/>
49 <mspace width="40px" height="40px" mathbackground="yellow"/>
51 <mspace width="40px" height="40px" mathbackground="blue"/>
52 <mspace width="40px" height="40px" mathbackground="blue"/>
53 </mmultiscripts>
54 </math>
55 </div>
57 <!-- We add black vertical bands to cover spaces between the children of
58 mmultiscripts. -->
59 <div style="position: absolute;
60 top: 5px; left: 5px; width: 200px; height: 200px;">
61 <div style="position: absolute; width: 10px; height: 200px;
62 left: -5px; background: black;"></div>
63 <div style="position: absolute; width: 10px; height: 200px;
64 left: 35px; background: black;"></div>
65 <div style="position: absolute; width: 10px; height: 200px;
66 left: 75px; background: black;"></div>
67 <div style="position: absolute; width: 10px; height: 200px;
68 left: 115px; background: black;"></div>
69 <div style="position: absolute; width: 10px; height: 200px;
70 left: 155px; background: black;"></div>
71 <div style="position: absolute; width: 10px; height: 200px;
72 left: 195px; background: black;"></div>
73 </div>
75 </body>
76 </html>