mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
36 lines
No EOL
1.1 KiB
HTML
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">&</span> That</div>
|
|
<div class="test">This & That</div>
|
|
|
|
</body></html> |