23 lines
602 B
HTML
23 lines
602 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style id="style"></style>
|
|
</head>
|
|
<body>
|
|
<span id="target" style="font: 48px 'WebFont';">Hello, World!</span>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.waitUntilDone();
|
|
|
|
if (window.internals) {
|
|
internals.invalidateFontCache();
|
|
internals.clearMemoryCache();
|
|
}
|
|
|
|
document.getElementById("style").sheet.insertRule("@font-face { font-family: 'WebFont'; src: url('../../resources/Ahem.ttf') format('truetype'); }");
|
|
document.getElementById("target").offsetWidth;
|
|
window.location = "resources/font-load-timer-navigation-destination.html";
|
|
</script>
|
|
</body>
|
|
</html>
|