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

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     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