layout/reftests/font-face/name-collision-bad-url-ref.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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 table td {
michael@0 30 font-family: fallback;
michael@0 31 font-size: 24pt;
michael@0 32 }
michael@0 33
michael@0 34 </style>
michael@0 35
michael@0 36 </head>
michael@0 37
michael@0 38 <body>
michael@0 39
michael@0 40 <p>All text below should appear in the same "fallback" font face:</p>
michael@0 41
michael@0 42 <table>
michael@0 43 <tr class="sample"><td>Sample</td></tr>
michael@0 44 <tr class="arial"><td>Arial</td></tr>
michael@0 45 <tr class="timesnewroman"><td>Times New Roman</td></tr>
michael@0 46 <tr class="couriernew"><td>Courier New</td></tr>
michael@0 47 <tr class="futura"><td>Futura</td></tr>
michael@0 48 <tr class="helvetica"><td>Helvetica</td></tr>
michael@0 49 <tr class="times"><td>Times</td></tr>
michael@0 50 <tr class="courier"><td>Courier</td></tr>
michael@0 51 <tr class="bitstreamverasans"><td>Bitstream Vera Sans</td></tr>
michael@0 52 <tr class="dejavusans"><td>DejaVu Sans</td></tr>
michael@0 53 <tr class="freesans"><td>FreeSans</td></tr>
michael@0 54 </table>
michael@0 55
michael@0 56 </body>
michael@0 57 </html>

mercurial