1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/font-face/name-collision-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,68 @@ 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 +@font-face { 1.33 + font-family: Sample; 1.34 + src: url(../fonts/mplus/mplus-1p-black.ttf); 1.35 + font-weight: 900; 1.36 +} 1.37 + 1.38 +.sample { font-family: Sample, fallback; } 1.39 + 1.40 +table { 1.41 + font-family: Sample; 1.42 +} 1.43 + 1.44 +table td { 1.45 + font-size: 24pt; 1.46 +} 1.47 + 1.48 +</style> 1.49 + 1.50 +</head> 1.51 + 1.52 +<body> 1.53 + 1.54 +<p>All text below should appear in the same extra bold font face:</p> 1.55 + 1.56 +<table> 1.57 +<tr class="sample"><td>Sample</td></tr> 1.58 +<tr class="arial"><td>Arial</td></tr> 1.59 +<tr class="timesnewroman"><td>Times New Roman</td></tr> 1.60 +<tr class="couriernew"><td>Courier New</td></tr> 1.61 +<tr class="futura"><td>Futura</td></tr> 1.62 +<tr class="helvetica"><td>Helvetica</td></tr> 1.63 +<tr class="times"><td>Times</td></tr> 1.64 +<tr class="courier"><td>Courier</td></tr> 1.65 +<tr class="bitstreamverasans"><td>Bitstream Vera Sans</td></tr> 1.66 +<tr class="dejavusans"><td>DejaVu Sans</td></tr> 1.67 +<tr class="freesans"><td>FreeSans</td></tr> 1.68 +</table> 1.69 + 1.70 +</body> 1.71 +</html>