зеркало из https://github.com/mozilla/pjs.git
bug 593564 - reftest for synthetic bold glyph metrics. a=test-only
This commit is contained in:
Родитель
50f2737229
Коммит
6c7c9727c2
|
@ -28,6 +28,8 @@ random-if(!cocoaWidget) == font-size-adjust-02.html font-size-adjust-02-ref.html
|
|||
== soft-hyphens-1b.html soft-hyphens-1-ref.html
|
||||
== soft-hyphens-1c.html soft-hyphens-1-ref.html
|
||||
== swash-1.html swash-1-ref.html
|
||||
# Test for bug 593564, synthetic bold should cause glyph metrics to increase
|
||||
HTTP(..) != synthetic-bold-metrics-01.html synthetic-bold-metrics-01-notref.html
|
||||
== white-space-1a.html white-space-1-ref.html
|
||||
== white-space-1b.html white-space-1-ref.html
|
||||
== white-space-2.html white-space-2-ref.html
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: dvsm;
|
||||
src: url(../fonts/DejaVuSansMono.woff);
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: dvsm; /* family with only a single weight */
|
||||
}
|
||||
|
||||
.test {
|
||||
color: white; /* hide the text, we're only comparing metrics */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>AbcdefghijklmnopqrstuvwxyZ</p>
|
||||
<p>A<span class="test">bcdefghijklmnopqrstuvwxy</span>Z</p>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,26 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: dvsm;
|
||||
src: url(../fonts/DejaVuSansMono.woff);
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: dvsm; /* family with only a single weight */
|
||||
}
|
||||
|
||||
.test {
|
||||
color: white; /* hide the text, we're only comparing metrics */
|
||||
font-weight: bold; /* synthetic bold will be used */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>AbcdefghijklmnopqrstuvwxyZ</p>
|
||||
<!-- the "test" span here uses synthetic bold, which should cause the following
|
||||
'Z' to appear further to the right -->
|
||||
<p>A<span class="test">bcdefghijklmnopqrstuvwxy</span>Z</p>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче