Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head><title>Test direction: dynamic change</title></head>
4 <body>
5 <p>
6 math:
7 <math>
8 <mi>a</mi>
9 <mi>b</mi>
10 <mi>c</mi>
11 </math>
12 <math dir="ltr">
13 <mi>a</mi>
14 <mi>b</mi>
15 <mi>c</mi>
16 </math>
17 <math dir="rtl">
18 <mi>a</mi>
19 <mi>b</mi>
20 <mi>c</mi>
21 </math>
22 </p>
24 <p>
25 mstyle:
26 <math>
27 <mstyle>
28 <mi>a</mi>
29 <mi>b</mi>
30 <mi>c</mi>
31 </mstyle>
32 </math>
33 <math>
34 <mstyle dir="ltr">
35 <mi>a</mi>
36 <mi>b</mi>
37 <mi>c</mi>
38 </mstyle>
39 </math>
40 <math>
41 <mstyle dir="rtl">
42 <mi>a</mi>
43 <mi>b</mi>
44 <mi>c</mi>
45 </mstyle>
46 </math>
47 </p>
49 <p>
50 mrow:
51 <math>
52 <mrow>
53 <mi>a</mi>
54 <mi>b</mi>
55 <mi>c</mi>
56 </mrow>
57 </math>
58 <math>
59 <mrow dir="ltr">
60 <mi>a</mi>
61 <mi>b</mi>
62 <mi>c</mi>
63 </mrow>
64 </math>
65 <math>
66 <mrow dir="rtl">
67 <mi>a</mi>
68 <mi>b</mi>
69 <mi>c</mi>
70 </mrow>
71 </math>
72 </p>
74 <script>
75 function doTest()
76 {
77 var x = document.getElementsByTagName("math");
78 x[0].setAttribute("dir", "rtl");
79 x[1].setAttribute("dir", "rtl");
80 x[2].removeAttribute("dir");
82 x = document.getElementsByTagName("mstyle");
83 x[0].setAttribute("dir", "rtl");
84 x[1].setAttribute("dir", "rtl");
85 x[2].removeAttribute("dir");
87 x = document.getElementsByTagName("mrow");
88 x[0].setAttribute("dir", "rtl");
89 x[1].setAttribute("dir", "rtl");
90 x[2].removeAttribute("dir");
92 document.documentElement.removeAttribute("class");
93 }
94 window.addEventListener("MozReftestInvalidate", doTest, false);
95 </script>
97 </body>
98 </html>