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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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