26 lines
681 B
HTML
26 lines
681 B
HTML
<style>
|
|
@font-face {
|
|
font-family: ahem;
|
|
src: local(unquoted name), url(../../resources/Ahem.ttf);
|
|
}
|
|
@font-face {
|
|
font-family: invalid;
|
|
src: local(invalid '' name), url(../../resources/Ahem.ttf);
|
|
}
|
|
</style>
|
|
<p>This test ensures that unquoted font names are allowed in local().</p>
|
|
|
|
<p>The text below should be a series of black boxes.</p>
|
|
<p style="font-family: ahem;">FAIL</p>
|
|
|
|
<p>The text below should not be a series of black boxes.</p>
|
|
<p style="font-family: invalid;">SUCCESS</p>
|
|
|
|
<script>
|
|
if (window.testRunner) {
|
|
testRunner.waitUntilDone();
|
|
document.documentElement.offsetTop;
|
|
setTimeout(function() { testRunner.notifyDone(); }, 200);
|
|
}
|
|
</script>
|