1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
<!doctype html>
<html>
<head>
<title>CSS Fonts test</title>
<style type="text/css">
h2 {
font-family: sans-serif;
}
section {
border: 1px solid black;
border-radius: 8px;
padding: 1em;
margin: 1em;
}
</style>
</head>
<body>
<h2>General tests</h2>
<section>
<p style="font: 20px monospace;">font: 20px monospace;</p>
<p style="font: 12pt/14pt sans-serif;">font: 12pt/14pt sans-serif;</p>
<p style="font: 80% cursive;">font: 80% cursive;</p>
<p style="font: bold 80% cursive;">font: bold 80% cursive;</p>
<p style="font: x-large/110% fantasy, serif;">font: x-large/110% fantasy, serif;</p>
<p style="font: 400 2em SerenitySans;">font: 400 2em SerenitySans;</p>
<p style="font: 400 200% SerenitySans;">font: 400 200% SerenitySans;</p>
<p style="font: 400 x-large SerenitySans;">font: 400 x-large SerenitySans;</p>
<p style="font: smaller SerenitySans;">font: smaller SerenitySans;</p>
<p style="font: normal smaller SerenitySans;">font: normal smaller SerenitySans;</p>
<p style="font: bold italic large Helvetica, sans-serif;">font: bold italic large Helvetica, sans-serif;</p>
<p style="font: normal small-caps 120%/120% monospace;">font: normal small-caps 120%/120% monospace;</p>
<p style="font: condensed oblique 12pt 'Helvetica Neue', serif;">font: condensed oblique 12pt "Helvetica Neue", serif;</p>
<p style="font: condensed oblique 25deg 12pt 'Helvetica Neue', serif;">font: condensed oblique 25deg 12pt "Helvetica Neue", serif;</p>
</section>
<h2>Calc() values</h2>
<section>
<p style="font-family: 'Liberation Serif', cursive; font-size: calc(120% + 10px);">font-family: 'Liberation Serif', cursive; font-size: calc(120% + 10px);</p>
<p style="font: calc(120% + 10px) 'Liberation Serif', cursive;">font: calc(120% + 10px) 'Liberation Serif', cursive;</p>
<p style="font-family: 'Liberation Serif', cursive; font-weight: calc(200 * 4);">font-family: 'Liberation Serif', cursive; font-weight: calc(200 * 4);</p>
<p style="font: calc(200*4) 20px 'Liberation Serif', cursive;">font: calc(200 * 4) 20px 'Liberation Serif', cursive;</p>
</section>
<h2>Fallback</h2>
<section>
<p style="font: 16pt 'fake font', not-real-font, 'SerenitySans', monospace;">font: 16pt 'fake font', not-real-font, 'SerenitySans', monospace;</p>
<p style="font-family: 'fake font', not-real-font, 'SerenitySans', monospace;">font-family: 'fake font', not-real-font, 'SerenitySans', monospace;</p>
</section>
<h2>Fonts with multiple faces</h2>
<section>
<p style="font: 20px 'Liberation Serif';">font: 20px 'Liberation Serif';</p>
<p style="font: italic 20px 'Liberation Serif';">font: italic 20px 'Liberation Serif';</p>
<p style="font: bold 20px 'Liberation Serif';">font: bold 20px 'Liberation Serif';</p>
<p style="font: bold italic 20px 'Liberation Serif';">font: bold italic 20px 'Liberation Serif';</p>
</section>
</body>
</html>
|