layout/reftests/font-face/name-collision-with-prefs-font.html

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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

mercurial