blob: 4a94ecc8ed20f8ebe467e9bd28be44ed089a1342 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style id="style"></style>
</head>
<body>
<span id="target" style="font: 48px 'WebFont';">HelloWorld!</span>
<script>
window.setTimeout(function() {
document.getElementById("style").sheet.insertRule("@font-face { font-family: 'WebFont'; src: url('../../../resources/Ahem.ttf') format('truetype'); }");
document.fonts.entries().next().value.load().then(function() {
if (window.testRunner)
testRunner.notifyDone();
}, function() {
if (window.testRunner)
testRunner.notifyDone();
});
}, 100);
</script>
</body>
</html>