| <!DOCTYPE html> |
| <html> |
| <head> |
| <script> |
| if (window.internals) { |
| internals.clearMemoryCache(); |
| internals.invalidateFontCache(); |
| } |
| </script> |
| <style> |
| @font-face { |
| font-family: "WebFont"; |
| src: url("../resources/Ahem.woff"); |
| } |
| |
| @font-face { |
| font-family: "WebFont2"; |
| src: url("slow-ahem-loading.cgi"); |
| } |
| </style> |
| </head> |
| <body> |
| This test makes sure that system fallback fonts (occuring when falling off the end of the fallback list) 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, WebFont2, Helvetica"; |
| webFontDiv.innerHTML = "の"; |
| document.body.appendChild(webFontDiv); |
| }; |
| </script> |