Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / webfont / slow-loading.html
blobd5dd05725040301f8b354d8cbe7ed5314efddf42
1 <html>
2 <head>
3 <style>
4 @font-face {
5 font-family:ahem-4sec;
6 src: url(slow-ahem-loading.cgi?delay=4000);
8 @font-face {
9 font-family:ahem-8sec;
10 src: url(slow-ahem-loading.cgi?delay=8000);
12 @font-face {
13 font-family:ahem-5sec;
14 src: url(slow-ahem-loading.cgi?delay=5000);
16 .testspan {
17 font-size:64px;
18 border: 1px solid;
20 #span1 {
21 font-family: ahem-4sec, Arial;
23 #span2 {
24 font-family: ahem-8sec, Arial;
26 #span3 {
27 font-family: ahem-5sec, Arial;
29 </style>
30 </head>
31 <body>
33 Ahem after 5 seconds:
34 <br/>
35 <span class="testspan" id="span1" style="display: none;">
36 abcdefg
37 </span>
38 <br/>
40 Arial after 5 seconds:
41 <br/>
42 <span class="testspan" id="span2" style="display: none;">
43 abcdefg
44 </span>
45 <br/>
47 Blank after 5 seconds:
48 <br/>
49 <span class="testspan" id="span3" style="display: none;">
50 abcdefg
51 </span>
52 <br/>
54 <script>
56 if (window.testRunner)
57 testRunner.waitUntilDone();
59 function displayElementAfter(id, msec) {
60 setTimeout(function() {
61 document.getElementById(id).style.removeProperty("display");
62 }, msec);
65 window.onload = function() {
66 displayElementAfter("span1", 0);
67 displayElementAfter("span2", 0);
68 displayElementAfter("span3", 3000);
69 setTimeout(function() { if (window.testRunner) testRunner.notifyDone(); }, 5000);
72 </script>
73 </body>
74 </html>