| <script> |
| if (window.testRunner) { |
| testRunner.dumpAsText(); |
| testRunner.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.testRunner) |
| testRunner.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> |