servo/tests/ref/per_glyph_font_fallback_ref.html
Patrick Walton fec43b49bb layout: Implement per-glyph font fallback.
This improves numerous pages, for example Wikipedia and Ars Technica.

Closes #177.
2015-05-22 17:16:24 -07:00

28 lines
534 B
HTML

<!DOCTYPE html>
<html>
<head>
<!-- Tests that font fallback occurs on a per-glyph basis. -->
<style>
@font-face {
font-family: 'ahem';
src: url(fonts/ahem/ahem.ttf);
}
body {
font-family: Ahem, sans-serif;
font-size: 24px;
line-height: 24px;
}
.arrow {
font-family: sans-serif;
}
</style>
</head>
<body>
<section>x<span class=arrow>&larr;</span></section>
<section><span class=arrow>&rarr;</span>x</section>
<section><span class=arrow>&rarr;</span>x<span class=arrow>&larr;</span></section>
</body>
</html>