Merge mozilla-central to autoland. a=merge CLOSED TREE
[gecko.git] / layout / reftests / font-face / font-display-1.html
blob6f8c365e6503eedce7db9d1f617ec8a742a60e7c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>font-display test</title>
5 <meta charset="utf-8">
6 <style>
7 body { margin: 20px }
9 @font-face {
10 font-family: test1-auto;
11 src: url(../fonts/markA.woff);
12 font-display: auto;
15 @font-face {
16 font-family: test1-block;
17 src: url(../fonts/markA.woff);
18 font-display: block;
21 @font-face {
22 font-family: test1-swap;
23 src: url(../fonts/markA.woff);
24 font-display: swap;
27 @font-face {
28 font-family: test1-fallback;
29 src: url(../fonts/markA.woff);
30 font-display: fallback;
33 @font-face {
34 font-family: test1-optional;
35 src: url(../fonts/markfonts-delay.sjs?font=markA&delay=2000&test=font-display-1-optional);
36 font-display: optional;
39 div.test {
40 font-size: 600%;
41 line-height: 1.3em;
42 width: 500px;
45 div.test p {
46 display: inline-block;
47 width: 150px;
48 margin: 0;
51 .auto { font-family: test1-auto; }
52 .block { font-family: test1-block; }
53 .swap { font-family: test1-swap; }
54 .fallback { font-family: test1-fallback; }
55 .optional { font-family: test1-optional; }
57 </style>
58 </head>
60 <body>
61 <div class="test">
62 <p class="auto">A</p>
63 <p class="block">A</p>
64 </div>
65 <div class="test">
66 <p class="swap">A</p>
67 <p class="fallback">A</p>
68 <p class="optional">A</p>
69 </div>
70 </body>
71 </html>