| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| if (window.internals) { |
| internals.clearMemoryCache(); |
| internals.invalidateFontCache(); |
| } |
| </script> |
| <style> |
| @font-face { |
| font-family: "WebFont"; |
| src: url("slow-ahem-loading.cgi"); |
| } |
| |
| @font-face { |
| font-family: "WebFont"; |
| src: url("../resources/Ahem.woff"); |
| } |
| </style> |
| </head> |
| <body> |
| This test makes sure that system fallback fonts during loading are invisible when the loading font is invisible. The test passes if this text is the only text on the page. |
| </body> |
| </html> |
| <script> |
| window.onload = function() { |
| let webFontDiv = document.createElement("div"); |
| webFontDiv.style.fontSize = "48px"; |
| webFontDiv.style.fontFamily = "WebFont, Helvetica"; |
| webFontDiv.innerHTML = "の"; |
| document.body.appendChild(webFontDiv); |
| }; |
| </script> |