зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
d03fa2690f
Коммит
fa72971513
|
@ -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>
|
Загрузка…
Ссылка в новой задаче