servo/tests/wpt/css-tests/css-fonts-3_dev/html/font-face-unicode-range-2.htm
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

36 lines
No EOL
987 B
HTML

<!DOCTYPE html>
<html><head><meta charset="utf-8">
<title>CSS Test: font-face unicode-range</title>
<link href="chris@w3.org" rel="author" title="Chris Lilley">
<link href="http://www.w3.org/TR/css-fonts-3/#unicode-range-desc" rel="help">
<meta content="" name="flags">
<meta content="Check that font-face unicode-range restrics use of glyphs outside that range" name="assert">
<style>
@font-face {
font-family: base;
src: url(support/fonts/LigatureSymbolsWithSpaces.woff);
}
@font-face {
font-family: swoosh;
src: url(support/fonts/Rochester.otf);
unicode-range: U+26;
}
.test {
font-family: swoosh, base;
}
.ref {
font-family: base;
}
.ref .amp {
font-family: swoosh;
}
div {
font-size: 5em;
}
</style>
</head><body>
<p>Test passes if the two lines look the same, with just the ampersand in italic</p>
<div class="ref">This <span class="amp">&amp;</span> That</div>
<div class="test">This &amp; That</div>
</body></html>