bug 724231 - test that synthetic styles applied to src:local fonts do NOT use a true styled face that happens to be installed, instead of the one defined by the @-rule. r=jdaggett

This commit is contained in:
Jonathan Kew 2012-02-04 22:22:19 +00:00
Родитель d03fa2690f
Коммит fa72971513
5 изменённых файлов: 73 добавлений и 0 удалений

Просмотреть файл

@ -70,3 +70,8 @@ HTTP(..) == stretchmapping-137.html stretchmapping-137-ref.html
# test for font-stretch using @font-face
HTTP(..) == font-stretch-1.html font-stretch-1-ref.html
# bug 724231 - applying synthetic styles to a single @font-face font
# should apply artificial obliquing, not switch to a true styled face
!= synthetic-style-1.html synthetic-style-1-notref.html
!= synthetic-style-2.html synthetic-style-2-notref.html

Просмотреть файл

@ -0,0 +1,15 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Synthetic italic should not use true italic face</title>
<!-- see bug 724231 -->
<style type="text/css">
body {
font-family: "Times New Roman", "Times", "DejaVu Serif", "FreeSerif", "Droid Serif", sans-serif;
}
</style>
</head>
<body>
<p><i>Synthetic italics</i> should <i>not</i> use the true italic face.
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Synthetic italic should not use true italic face</title>
<!-- see bug 724231 -->
<style type="text/css">
@font-face {
font-family: test;
src: local(Times New Roman), local(Times), local(DejaVu Serif), local(FreeSerif), local(Droid Serif);
}
body {
font-family: test, sans-serif;
}
</style>
</head>
<body>
<p><i>Synthetic italics</i> should <i>not</i> use the true italic face.
</body>
</html>

Просмотреть файл

@ -0,0 +1,15 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Synthetic bold should not use true bold face</title>
<!-- see bug 724231 -->
<style type="text/css">
body {
font-family: "Times New Roman", "Times", "DejaVu Serif", "FreeSerif", "Droid Serif", sans-serif;
}
</style>
</head>
<body>
<p><b>Synthetic bold</b> should <b>not</b> use the true bold face.
</body>
</html>

Просмотреть файл

@ -0,0 +1,19 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Synthetic bold should not use true bold face</title>
<!-- see bug 724231 -->
<style type="text/css">
@font-face {
font-family: test;
src: local(Times New Roman), local(Times), local(DejaVu Serif), local(FreeSerif), local(Droid Serif);
}
body {
font-family: test, sans-serif;
}
</style>
</head>
<body>
<p><b>Synthetic bold</b> should <b>not</b> use the true bold face.
</body>
</html>