layout/reftests/font-face/name-collision-ref.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 <!DOCTYPE HTML>
     2 <html>
     3 <head>
     4 <title>Font name collision test</title>
     5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     7 <!-- 
     8   Font family names in @font-face rules take precedence over locally-available font families,
     9   so none of the names of commonly used platform fonts should match against locally available
    10   fonts.
    11 -->
    13 <style type="text/css">
    15 @font-face {
    16   font-family: fallback;
    17   src: url(../fonts/mplus/mplus-1p-regular.ttf);
    18 }
    20 body {
    21   margin: 50px;
    22   font-family: fallback;
    23 }
    25 table {
    26   margin-left: 3em;
    27 }
    29 @font-face {
    30   font-family: Sample;
    31   src: url(../fonts/mplus/mplus-1p-black.ttf);
    32   font-weight: 900;
    33 }
    35 .sample { font-family: Sample, fallback; }
    37 table {
    38   font-family: Sample;
    39 }
    41 table td {
    42   font-size: 24pt;
    43 }
    45 </style>
    47 </head>
    49 <body>
    51 <p>All text below should appear in the same extra bold font face:</p>
    53 <table>
    54 <tr class="sample"><td>Sample</td></tr>
    55 <tr class="arial"><td>Arial</td></tr>
    56 <tr class="timesnewroman"><td>Times New Roman</td></tr>
    57 <tr class="couriernew"><td>Courier New</td></tr>
    58 <tr class="futura"><td>Futura</td></tr>
    59 <tr class="helvetica"><td>Helvetica</td></tr>
    60 <tr class="times"><td>Times</td></tr>
    61 <tr class="courier"><td>Courier</td></tr>
    62 <tr class="bitstreamverasans"><td>Bitstream Vera Sans</td></tr>
    63 <tr class="dejavusans"><td>DejaVu Sans</td></tr>
    64 <tr class="freesans"><td>FreeSans</td></tr>
    65 </table>
    67 </body>
    68 </html>

mercurial