mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
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:
parent
9f4de82c59
commit
1ad1361db8
@ -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
|
||||
|
||||
|
15
layout/reftests/font-matching/synthetic-style-1-notref.html
Normal file
15
layout/reftests/font-matching/synthetic-style-1-notref.html
Normal file
@ -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>
|
19
layout/reftests/font-matching/synthetic-style-1.html
Normal file
19
layout/reftests/font-matching/synthetic-style-1.html
Normal file
@ -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>
|
15
layout/reftests/font-matching/synthetic-style-2-notref.html
Normal file
15
layout/reftests/font-matching/synthetic-style-2-notref.html
Normal file
@ -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>
|
19
layout/reftests/font-matching/synthetic-style-2.html
Normal file
19
layout/reftests/font-matching/synthetic-style-2.html
Normal file
@ -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>
|
Loading…
Reference in New Issue
Block a user