blob: a81fd6a85533f8c4286e1af4b8f50fa4c7abe942 [file] [log] [blame]
<html>
<script src="../../resources/js-test-pre.js"></script>
<script>
description('Test for <a href="http://webkit.org/b/73520">WebKit bug 73520</a>');
window.jsTestIsAsync = true;
function runTest()
{
testDiv = document.getElementById('test');
shouldBeEqualToString('window.getComputedStyle(testDiv, 0).width', '48px');
finishJSTest();
}
</script>
<head>
<style type="text/css">
body {
font-family: serif;
}
@font-face{
font-family: 'ahem';
src: url('../../resources/Ahem.ttf');
}
#test {
position: absolute
}
#test span {
font-family: ahem;
}
</style>
</head>
<body onload="setTimeout('runTest()', 100)">
<div id=test>
<a href="#">
<span>aaa</span>
</a>
</div>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>