blob: 9f9580b5347aa1abab3b7f1f76e532bb07b98d16 [file] [log] [blame]
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
function test()
{
document.body.offsetTop;
var d = document.getElementsByTagName('div')[0];
var pre = document.createElement("pre");
pre.innerText = "div height = " + d.clientHeight;
document.body.appendChild(pre);
if (window.layoutTestController)
layoutTestController.notifyDone();
}
</script>
<style>
@font-face {
font-family: myfont;
src: url(../../resources/Ahem.ttf), url(../../resources/Ahem.ttf#foo) format('svg');
}
</style>
<body onload="setTimeout(test, 300)">
<p>
Test that SVG font URL with #hash does not prevent the same URL working for non-SVG font. The div height should be 16 (from the Ahem font).
</p>
<div>
<span style="font-family: myfont">Hello world!</span>
</div>