Skip to content

Commit c78811c

Browse files
minghuawservo-wpt-sync
authored andcommitted
move new test to wpt
Signed-off-by: Minghua Wu <michael.wu1107@gmail.com>
1 parent 5f55f54 commit c78811c

3 files changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<!DOCTYPE html>
2+
<html lang = "en">
3+
<meta charset="utf-8">
4+
<title>CSS Test: font synthesis weight: bold web font should not be "double emboldened"</title>
5+
<style>
6+
@font-face {
7+
font-family: "lato";
8+
src: url(/fonts/Lato-Bold.ttf)
9+
}
10+
.test {
11+
font-family: "lato";
12+
font-size: 3em;
13+
}
14+
</style>
15+
16+
<p class="test">Filler text</p>
17+
</html>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang = "en">
3+
<meta charset="utf-8">
4+
<title>CSS Test: font synthesis weight: bold web font should not be "double emboldened"</title>
5+
<link rel="match" href="font-synthesis-weight-webfont-bold-ref.html">
6+
<link rel="help" href="https://www.w3.org/TR/css-fonts-4/#font-synthesis-weight">
7+
<meta name="assert" content=" If font face is already bold, user agents must not synthesize bold face again">
8+
<style>
9+
@font-face {
10+
font-family: "lato";
11+
src: url(/fonts/Lato-Bold.ttf)
12+
}
13+
.test {
14+
font-family: "lato";
15+
font-size: 3em;
16+
}
17+
.synth {
18+
font-weight: bold;
19+
}
20+
</style>
21+
22+
<p class="test synth">Filler text</p>
23+
</html>

fonts/Lato-Bold.ttf

71.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)