servo/tests/wpt/css-tests/css-fonts-3_dev/xhtml1/font-face-unicode-range-2.xht
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
1.1 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><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>