34 lines
899 B
HTML
34 lines
899 B
HTML
<style>
|
|
@font-face {
|
|
font-family: url-only;
|
|
src: url(../../resources/Ahem.ttf);
|
|
}
|
|
|
|
@font-face {
|
|
font-family: local-and-url;
|
|
src: local(Arial), url(../../resources/Ahem.ttf);
|
|
}
|
|
</style>
|
|
<body onload="document.body.offsetTop">
|
|
<p>
|
|
Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=32257">https://bugs.webkit.org/show_bug.cgi?id=32257</a>
|
|
Safari/Chromium crashes on complicated @font-face rule</i>.
|
|
</p>
|
|
<p>
|
|
The test passes if it does not crash.
|
|
</p>
|
|
<div style="font-family: url-only">
|
|
Ahem
|
|
</div>
|
|
<div style="font-family: local-and-url">
|
|
Arial
|
|
</div>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
// Force layout now to kick off font loading before the load even fires.
|
|
document.body.offsetTop;
|
|
</script>
|
|
</body>
|