bug 668758 - reftest for user font families clashing with prefs. r=jdaggett

This commit is contained in:
Jonathan Kew 2011-07-13 09:41:29 +01:00
parent 9911ba235d
commit bf94e81983
3 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,29 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 668758 - @font-face disrupts font preferences</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 50px;
font-family: serif;
}
</style>
</head>
<body>
<p>
This should be rendered using the default serif font.
</p>
<pre>
And this is preformatted text that ought to be monospaced.
</pre>
</body>
</html>

View File

@ -0,0 +1,65 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Bug 668758 - @font-face disrupts font preferences</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
/* none of these @font-face declarations should affect the rendering! */
@font-face {
font-family: Times;
src: url(../fonts/mplus/mplus-1p-black.ttf);
}
@font-face {
font-family: Times New Roman;
src: url(../fonts/mplus/mplus-1p-black.ttf);
}
@font-face {
font-family: Tms Rmn;
src: url(../fonts/mplus/mplus-1p-black.ttf);
}
@font-face {
font-family: Droid Serif;
src: url(../fonts/mplus/mplus-1p-black.ttf);
}
@font-face {
font-family: Courier;
src: url(../fonts/mplus/mplus-1p-black.ttf);
}
@font-face {
font-family: Courier New;
src: url(../fonts/mplus/mplus-1p-black.ttf);
}
@font-face {
font-family: Droid Sans Mono;
src: url(../fonts/mplus/mplus-1p-black.ttf);
}
body {
margin: 50px;
font-family: serif;
}
</style>
</head>
<body>
<p>
This should be rendered using the default serif font.
</p>
<pre>
And this is preformatted text that ought to be monospaced.
</pre>
</body>
</html>

View File

@ -99,6 +99,8 @@ HTTP(..) == load-badchecksum.html load-badchecksum-ref.html
HTTP(..) == name-collision.html name-collision-ref.html
HTTP(..) == name-collision-bad-url.html name-collision-bad-url-ref.html
HTTP(..) == name-collision-with-prefs-font.html name-collision-with-prefs-font-ref.html # bug 668758
# t2embed lib on windows is picky about fullname
HTTP(..) == load-badfullname.html load-badfullname-ref.html