summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/font-display/font-display-ref.html
blob: d75644e351fd05660af4901e880fe970c17093d1 (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
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<title>Test for font-display @font-face descriptor</title>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.ahem {
  font-family: Ahem;
}
.arial {
  font-family: Arial;
}
</style>
<p>Tests how text with a font that takes <i>delay</i> seconds to load look like after <i>T</i> seconds from load start.</p>
<table>
<tr>
 <th>T[sec]</th>
 <th>delay[sec]</th>
 <th>block</th>
 <th>swap</th>
 <th>fallback</th>
 <th>optional</th>
</tr>
<tr>
 <td>0</td>
 <td>1</td>
 <td></td>
 <td class="arial">a</td>
 <td></td>
 <td class="arial">a</td>
</tr>
<tr>
 <td>1</td>
 <td>0</td>
 <td class="ahem">a</td>
 <td class="ahem">a</td>
 <td class="ahem">a</td>
 <td class="ahem">a</td>
</tr>
<tr>
 <td>1</td>
 <td>0.5</td>
 <td class="ahem">a</td>
 <td class="ahem">a</td>
 <td class="ahem">a</td>
 <td class="arial">a</td>
</tr>
<tr>
 <td>1</td>
 <td>3</td>
 <td></td>
 <td class="arial">a</td>
 <td class="arial">a</td>
 <td class="arial">a</td>
</tr>
<tr>
 <td>5</td>
 <td>2</td>
 <td class="ahem">a</td>
 <td class="ahem">a</td>
 <td class="ahem">a</td>
 <td class="arial">a</td>
</tr>
<tr>
 <td>5</td>
 <td>4</td>
 <td class="ahem">a</td>
 <td class="ahem">a</td>
 <td class="arial">a</td>
 <td class="arial">a</td>
</tr>
<tr>
 <td>5</td>
 <td>8</td>
 <td class="arial">a</td>
 <td class="arial">a</td>
 <td class="arial">a</td>
 <td class="arial">a</td>
</tr>
</table>