1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/font-face/name-collision-with-prefs-font.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,65 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 +<title>Bug 668758 - @font-face disrupts font preferences</title> 1.8 +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 1.9 + 1.10 +<style type="text/css"> 1.11 + 1.12 +/* none of these @font-face declarations should affect the rendering! */ 1.13 +@font-face { 1.14 + font-family: Times; 1.15 + src: url(../fonts/mplus/mplus-1p-black.ttf); 1.16 +} 1.17 + 1.18 +@font-face { 1.19 + font-family: Times New Roman; 1.20 + src: url(../fonts/mplus/mplus-1p-black.ttf); 1.21 +} 1.22 + 1.23 +@font-face { 1.24 + font-family: Tms Rmn; 1.25 + src: url(../fonts/mplus/mplus-1p-black.ttf); 1.26 +} 1.27 + 1.28 +@font-face { 1.29 + font-family: Droid Serif; 1.30 + src: url(../fonts/mplus/mplus-1p-black.ttf); 1.31 +} 1.32 + 1.33 +@font-face { 1.34 + font-family: Courier; 1.35 + src: url(../fonts/mplus/mplus-1p-black.ttf); 1.36 +} 1.37 + 1.38 +@font-face { 1.39 + font-family: Courier New; 1.40 + src: url(../fonts/mplus/mplus-1p-black.ttf); 1.41 +} 1.42 + 1.43 +@font-face { 1.44 + font-family: Droid Sans Mono; 1.45 + src: url(../fonts/mplus/mplus-1p-black.ttf); 1.46 +} 1.47 + 1.48 +body { 1.49 + margin: 50px; 1.50 + font-family: serif; 1.51 +} 1.52 + 1.53 +</style> 1.54 + 1.55 +</head> 1.56 + 1.57 +<body> 1.58 + 1.59 +<p> 1.60 +This should be rendered using the default serif font. 1.61 +</p> 1.62 + 1.63 +<pre> 1.64 +And this is preformatted text that ought to be monospaced. 1.65 +</pre> 1.66 + 1.67 +</body> 1.68 +</html>