bug 970891 - reftest for font fallback on the <space> character. r=roc

This commit is contained in:
Jonathan Kew 2014-02-11 22:17:25 +00:00
parent ee16a48ded
commit 8de6199eae
3 changed files with 54 additions and 0 deletions

View File

@ -295,3 +295,6 @@ pref(layout.css.text-align-true-value.enabled,true) == text-align-true.html text
!= control-chars-02.html control-chars-02-notref.html
== control-chars-03a.html control-chars-03-ref.html
== control-chars-03b.html control-chars-03-ref.html
# font fallback for <space> when not supported in the primary font family - bug 970891
HTTP(..) == space-font-1.html space-font-1-ref.html

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 970891</title>
<style type="text/css">
@font-face {
font-family: "test";
src: url(../fonts/markA.ttf);
}
div {
font-family: test, monospace;
font-size: 16px;
line-height: 32px;
}
span {
font-family: monospace;
}
</style>
</head>
<body>
<div><b>A</b><span> </span><b>A</b><span> </span><i>A</i><span> </span><i>A</i></div>
</body>
</html>

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Bug 970891</title>
<style type="text/css">
@font-face {
font-family: "test";
src: url(../fonts/markA.ttf);
}
div {
font-family: test, monospace;
font-size: 16px;
line-height: 32px;
}
</style>
</head>
<body>
<!-- markA does not have a glyph for the <space> character,
so the spaces should fall back to 'monospace' -->
<div><b>A</b> <b>A</b> <i>A</i> <i>A</i></div>
</body>
</html>