blob: 12836da62b8b88803e13761df7f36a3597f2ede5 [file] [log] [blame]
<html>
<script src="../../resources/js-test.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>
</body>
</html>