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>
4 <title>subscript</title>
5 <meta charset="utf-8"/>
6 <script type="text/javascript">
7 function verifyItalicCorrections()
8 {
9 var epsilon = 2;
10 for (var i = 0; i < 8; i += 2) {
11 var sub = document.getElementById("s" + i);
12 var sup = document.getElementById("s" + (i+1));
13 var italicCorrection =
14 sup.getBoundingClientRect().left - sub.getBoundingClientRect().left;
15 if (italicCorrection < epsilon) {
16 return false;
17 }
18 }
19 return true;
20 }
22 function doTest()
23 {
24 if (verifyItalicCorrections()) {
25 document.body.style.background = "#5f5";
26 }
27 document.documentElement.removeAttribute("class");
28 }
29 window.addEventListener("MozReftestInvalidate", doTest, false);
30 </script>
31 </head>
32 <body style="background: #f00; font-size: 50px;">
34 <div>
35 <math>
36 <msubsup>
37 <mi mathbackground="#5f5">f</mi>
38 <mspace id="s0" width="50px" height="50px" mathbackground="blue"/>
39 <mspace id="s1" width="50px" height="50px" mathbackground="blue"/>
40 </msubsup>
41 </math>
42 </div>
44 <br/>
46 <div>
47 <math>
48 <mmultiscripts>
49 <mi mathbackground="#5f5">f</mi>
50 <mspace id="s2" width="50px" height="50px" mathbackground="blue"/>
51 <mspace id="s3" width="50px" height="50px" mathbackground="blue"/>
52 <mspace id="s4" width="50px" height="50px" mathbackground="blue"/>
53 <mspace id="s5" width="50px" height="50px" mathbackground="blue"/>
54 <mspace id="s6" width="50px" height="50px" mathbackground="blue"/>
55 <mspace id="s7" width="50px" height="50px" mathbackground="blue"/>
56 </mmultiscripts>
57 </math>
58 </div>
60 </body>
61 </html>