layout/reftests/font-face/name-collision-ref.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

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

mercurial