1<!DOCTYPE html>
2<html>
3 <head>
4 <title>table align axis</title>
5 <meta charset="utf-8">
6 <style type="text/css">
7 /* For Latin Modern Math
8 AxisHeight = 7000 * 5 / 1000 = 35px;
9 */
10 @font-face {
11 font-family: axisheight;
12 src: url("axisheight7000.woff");
13 }
14 math {
15 font-family: axisheight;
16 font-size: 5px;
17 }
18 </style>
19 </head>
20 <body>
21
22 <!-- This test passes if the red bar is hidden by the green bar -->
23 <div style="position: absolute; left: 0px; top: 0px;">
24 <math>
25 <mspace height="100px" depth="100px" width="1px"/>
26 <mtable>
27 <mtr><mtd><mspace width="50px"/></mtd></mtr>
28 <mtr><mtd><mspace mathbackground="red" width="50px" height="1px" depth="1px"/></mtd></mtr>
29 <mtr><mtd><mspace width="50px"/></mtd></mtr>
30 </mfrac>
31 </math>
32 </div>
33
34 <!-- This green bar is moved up by AxisHeight and is a bit thicker than the red bar to tolerate rounding errors. -->
35 <div style="position: absolute; left: 0px; top: -35px;">
36 <math>
37 <mspace height="100px" depth="100px" width="1px" mathbackground="black"/>
38 <mspace width="100px" height="2px" depth="2px" mathbackground="green"/>
39 </math>
40 </div>
41
42 </body>
43</html>