lineheight-metrics-1.html (722B)
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>