name-collision-with-prefs-font.html (1123B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Bug 668758 - @font-face disrupts font preferences</title> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 7 <style type="text/css"> 8 9 /* none of these @font-face declarations should affect the rendering! */ 10 @font-face { 11 font-family: Times; 12 src: url(../fonts/mplus/mplus-1p-black.ttf); 13 } 14 15 @font-face { 16 font-family: Times New Roman; 17 src: url(../fonts/mplus/mplus-1p-black.ttf); 18 } 19 20 @font-face { 21 font-family: Tms Rmn; 22 src: url(../fonts/mplus/mplus-1p-black.ttf); 23 } 24 25 @font-face { 26 font-family: Droid Serif; 27 src: url(../fonts/mplus/mplus-1p-black.ttf); 28 } 29 30 @font-face { 31 font-family: Courier; 32 src: url(../fonts/mplus/mplus-1p-black.ttf); 33 } 34 35 @font-face { 36 font-family: Courier New; 37 src: url(../fonts/mplus/mplus-1p-black.ttf); 38 } 39 40 @font-face { 41 font-family: Droid Sans Mono; 42 src: url(../fonts/mplus/mplus-1p-black.ttf); 43 } 44 45 body { 46 margin: 50px; 47 font-family: serif; 48 } 49 50 </style> 51 52 </head> 53 54 <body> 55 56 <p> 57 This should be rendered using the default serif font. 58 </p> 59 60 <pre> 61 And this is preformatted text that ought to be monospaced. 62 </pre> 63 64 </body> 65 </html>