mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 970891 - reftest for font fallback on the <space> character. r=roc
This commit is contained in:
parent
ee16a48ded
commit
8de6199eae
@ -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
|
||||
|
26
layout/reftests/text/space-font-1-ref.html
Normal file
26
layout/reftests/text/space-font-1-ref.html
Normal 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>
|
25
layout/reftests/text/space-font-1.html
Normal file
25
layout/reftests/text/space-font-1.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user