blob: 56755c1658a163dab8d6bf0a104c2cda7039f5fb [file] [edit]
<!DOCTYPE html><!-- webkit-test-runner [ dumpResourceLoadCallbacks=true ] -->
<html>
<head>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
}
if (window.internals) {
internals.invalidateFontCache();
internals.clearMemoryCache();
}
</script>
<style>
@font-face {
font-family: "WebFont";
font-weight: 100;
src: url("../../resources/Ahem.ttf") format("truetype");
}
@font-face {
font-family: "WebFont";
font-weight: 900;
src: url("../../resources/Ahem.otf") format("opentype");
}
</style>
</head>
<body>
This test makes sure that unnecessary fonts aren't downloaded. The test fails if Ahem.otf is downloaded.
<div style="font: 100 100px 'WebFont';">Hello</div>
</body>
</html>