layout/reftests/text/lineheight-metrics-1.html

branch
TOR_BUG_3246
changeset 6
8bccb770b82d
equal deleted inserted replaced
-1:000000000000 0:50fa16837c1c
1 <title>Testcase, bug 643781</title>
2 <style>
3 html { background: white; }
4 @font-face {
5 font-family: "MarkA-lineheight1500";
6 src: url(../fonts/markA-lineheight1500.ttf);
7 }
8 body {
9 padding: 1px;
10 background: blue;
11 width: 100px;
12 height: 33px;
13 font-size: 0px; /* remove the effect of the strut ascent and descent */
14 }
15 div {
16 background: aqua;
17 }
18 /*
19 MarkA-lineheight1500 at 22 pixel em-size has a line height that is an --
20 integer number of pixels but the components (ascent/descent/leading) are not
21 integer. This test checks that the line-height remains accurate.
22 */
23 span {
24 color: transparent;
25 font-family: MarkA-lineheight1500;
26 font-size: 22px;
27 }
28 </style>
29 <body>
30 <div><span>A</span></div>
31 </body>

mercurial