1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/text/lineheight-metrics-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +<title>Testcase, bug 643781</title> 1.5 +<style> 1.6 +html { background: white; } 1.7 +@font-face { 1.8 + font-family: "MarkA-lineheight1500"; 1.9 + src: url(../fonts/markA-lineheight1500.ttf); 1.10 +} 1.11 +body { 1.12 + padding: 1px; 1.13 + background: blue; 1.14 + width: 100px; 1.15 + height: 33px; 1.16 + font-size: 0px; /* remove the effect of the strut ascent and descent */ 1.17 +} 1.18 +div { 1.19 + background: aqua; 1.20 +} 1.21 +/* 1.22 +MarkA-lineheight1500 at 22 pixel em-size has a line height that is an -- 1.23 +integer number of pixels but the components (ascent/descent/leading) are not 1.24 +integer. This test checks that the line-height remains accurate. 1.25 +*/ 1.26 +span { 1.27 + color: transparent; 1.28 + font-family: MarkA-lineheight1500; 1.29 + font-size: 22px; 1.30 +} 1.31 +</style> 1.32 +<body> 1.33 +<div><span>A</span></div> 1.34 +</body>