blob: 3555409d7272efd213a0ac18c25600eed1c91110 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div style="font: 32px 'WebFont';">Hello</div>
<script>
if (window.testRunner)
testRunner.waitUntilDone();
</script>
<iframe id="target" srcdoc="
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div style='font: 32px WebFont;'>Hello</div>
</body>
</html>"></iframe>
<script>
var font = new FontFace("WebFont", "url('../../resources/Ahem.ttf') format('truetype')");
document.fonts.add(font);
document.getElementById("target").contentWindow.document.fonts.add(font);
font.load().then(function() {
if (window.testRunner)
testRunner.notifyDone();
});
</script>
</body>
</html>