lineheight-metrics-2a.html (729B)
1 <title>Testcase, bug 947650 and 598900</title> 2 <style> 3 html { background: white; } 4 @font-face { 5 font-family: "MarkA-lineheight6000-typolineheight2700"; 6 src: url(../fonts/markA-lineheight6000-typolineheight2700.otf); 7 } 8 body { 9 padding: 1px; 10 background: blue; 11 width: 100px; 12 height: 27px; 13 font-size: 0px; /* remove the effect of the strut ascent and descent */ 14 } 15 div { 16 background: aqua; 17 } 18 span { 19 /* Choose 10px so that all the metrics are integers and we avoid rounding 20 issues. See lineheight-metrics-1.html for a test with non-integer values. 21 */ 22 color: transparent; 23 font-family: MarkA-lineheight6000-typolineheight2700; 24 font-size: 10px; 25 } 26 </style> 27 <body> 28 <div><span>A</span></div> 29 </body>