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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/font-face/name-collision-bad-url-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,57 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +<title>Font name collision test</title>
     1.8 +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     1.9 +
    1.10 +<!-- 
    1.11 +  Font family names in @font-face rules take precedence over locally-available font families,
    1.12 +  so none of the names of commonly used platform fonts should match against locally available
    1.13 +  fonts.
    1.14 +-->
    1.15 +
    1.16 +<style type="text/css">
    1.17 +
    1.18 +@font-face {
    1.19 +  font-family: fallback;
    1.20 +  src: url(../fonts/mplus/mplus-1p-regular.ttf);
    1.21 +}
    1.22 +
    1.23 +body {
    1.24 +  margin: 50px;
    1.25 +  font-family: fallback;
    1.26 +}
    1.27 +
    1.28 +table {
    1.29 +  margin-left: 3em;
    1.30 +}
    1.31 +
    1.32 +table td {
    1.33 +  font-family: fallback;
    1.34 +  font-size: 24pt;
    1.35 +}
    1.36 +
    1.37 +</style>
    1.38 +
    1.39 +</head>
    1.40 +
    1.41 +<body>
    1.42 +
    1.43 +<p>All text below should appear in the same "fallback" font face:</p>
    1.44 +
    1.45 +<table>
    1.46 +<tr class="sample"><td>Sample</td></tr>
    1.47 +<tr class="arial"><td>Arial</td></tr>
    1.48 +<tr class="timesnewroman"><td>Times New Roman</td></tr>
    1.49 +<tr class="couriernew"><td>Courier New</td></tr>
    1.50 +<tr class="futura"><td>Futura</td></tr>
    1.51 +<tr class="helvetica"><td>Helvetica</td></tr>
    1.52 +<tr class="times"><td>Times</td></tr>
    1.53 +<tr class="courier"><td>Courier</td></tr>
    1.54 +<tr class="bitstreamverasans"><td>Bitstream Vera Sans</td></tr>
    1.55 +<tr class="dejavusans"><td>DejaVu Sans</td></tr>
    1.56 +<tr class="freesans"><td>FreeSans</td></tr>
    1.57 +</table>
    1.58 +
    1.59 +</body>
    1.60 +</html>

mercurial