blob: 27e24e2fd0513b2b95501a09b4b4bfbc7b0461c5 (
plain)
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
59
60
61
62
63
64
65
66
67
|
<!DOCTYPE html>
<style>
@font-face {
font-family: bar;
src: url(bad/font/name.ttf), url(ostrich-regular.ttf) format("truetype");
}
@font-face {
font-family: barnormal;
font-weight: normal;
src: url(ostrich-regular.ttf);
}
@font-face {
font-family: bar;
font-weight: bold;
src: url(ostrich-black.ttf);
}
@font-face {
font-family: bar;
font-weight: 800;
src: url(ostrich-black.ttf);
}
body{
/* Arial doesn't exist on Linux. Liberation Sans is the default sans-serif there. */
font-family:Arial, "Liberation Sans";
font-size: 36px;
}
div {
font-size: 1em;
font-family:bar, "Missing Family", sans-serif;
}
.normal-text {
font-family: barnormal;
font-weight: normal;
}
.bold-text {
font-family: bar;
font-weight: bold;
font-size: inherit;
}
.black-text {
font-family: bar;
font-weight: 800;
}
.viewport-size {
font-size: 10vw;
}
.input-field {
font-family: bar;
font-size: 36px;
color: blue;
}
</style>
<body>
BODY
<div>DIV
<span class="nested-span">NESTED SPAN</span>
</div>
<iframe src="test_iframe.html"></iframe>
<div class="normal-text">NORMAL DIV</div>
<div class="bold-text">BOLD DIV</div>
<div class="black-text">800 DIV</div>
<div class="empty"></div>
<div class="viewport-size">VIEWPORT SIZE</div>
<input class="input-field" value="Input text value"/>
</body>
|