зеркало из https://github.com/mozilla/gecko-dev.git
bug 970891 - reftest for font fallback on the <space> character. r=roc
This commit is contained in:
Родитель
4179d8cb75
Коммит
a9e1ef3db5
|
@ -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
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
Загрузка…
Ссылка в новой задаче