Update web-platform-tests and CSS tests.

- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
Ms2ger 2017-02-06 11:06:12 +01:00
parent fb4f421c8b
commit 296fa2512b
21852 changed files with 2080936 additions and 892894 deletions

View file

@ -13,7 +13,7 @@
<body>
<h1>CSS Fonts Module Level 3 CR Test Suite</h1>
<h2>Font Resources (1 tests)</h2>
<h2>Font Resources (2 tests)</h2>
<table width="100%">
<col id="test-column">
<col id="refs-column">
@ -94,7 +94,7 @@
<tr><th colspan="4" scope="rowgroup">
<a href="#s4.5">+</a>
<a href="https://www.w3.org/TR/css-fonts-3/#unicode-range-desc">4.5 Character range: the unicode-range descriptor</a></th></tr>
<!-- 1 tests -->
<!-- 2 tests -->
<tr id="font-face-unicode-range-4.5" class="">
<td>
<a href="font-face-unicode-range.htm">font-face-unicode-range</a></td>
@ -106,6 +106,17 @@
</ul>
</td>
</tr>
<tr id="font-face-unicode-range-2-4.5" class="">
<td>
<a href="font-face-unicode-range-2.htm">font-face-unicode-range-2</a></td>
<td></td>
<td></td>
<td>font-face unicode-range
<ul class="assert">
<li>Check that font-face unicode-range restrics use of glyphs outside that range</li>
</ul>
</td>
</tr>
</tbody>
<tbody id="s4.5.#descdef-unicode-range">
<!-- 0 tests -->

View file

@ -6,7 +6,7 @@
<title>CSS Test: font shorthand - reserved keywords</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="author" title="John Daggett" href="jdaggett@mozilla.com">
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com">
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand" title="15.8 Shorthand font property: the 'font' property">
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop" title="3.7 Shorthand font property: the font property">
<link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012May/0878.html" title="Re: [css2.1][css3-fonts] keywords in unquoted font family names">

View file

@ -0,0 +1,36 @@
<!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>

View file

@ -6,7 +6,7 @@
<title>CSS Test: font-family - inherit as part of font-family name</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="author" title="John Daggett" href="jdaggett@mozilla.com">
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com">
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop" title="15.3 Font family: the 'font-family' property">
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-family-prop" title="3.1 Font family: the font-family property">
<link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012May/0878.html" title="Re: [css2.1][css3-fonts] keywords in unquoted font family names">

View file

@ -1,4 +0,0 @@
<Files ~ "^at-charset-00[1-6].css$">
AddCharset Shift_JIS .css
</Files>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div><span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
</div>
</body></html>

View file

@ -0,0 +1,60 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("resources/FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div id="insertionpoint"></div>
<script>
var insertionpoint = document.getElementById("insertionpoint");
function addElement(feature, c) {
["0", "1"].map(function(state) {
var element = document.createElement("span");
element.textContent = c;
element.style.fontFamily = "FontFeaturesTest";
element.style.webkitFontFeatureSettings = '"' + feature + '" ' + state;
insertionpoint.appendChild(element);
});
insertionpoint.appendChild(document.createTextNode(" "));
}
addElement("liga", "C");
addElement("clig", "D");
addElement("dlig", "E");
addElement("hlig", "F");
addElement("calt", "G");
addElement("subs", "H");
addElement("sups", "I");
addElement("smcp", "J");
addElement("c2sc", "K");
addElement("pcap", "L");
addElement("c2pc", "M");
addElement("unic", "N");
addElement("titl", "O");
addElement("onum", "P");
addElement("pnum", "Q");
addElement("tnum", "R");
addElement("frac", "S");
//addElement("afrc", "T");
addElement("ordn", "U");
addElement("zero", "V");
addElement("hist", "W");
addElement("jp78", "X");
addElement("jp83", "Y");
addElement("jp90", "Z");
addElement("jp04", "a");
addElement("smpl", "b");
addElement("trad", "c");
addElement("fwid", "d");
addElement("pwid", "e");
addElement("ruby", "f");
</script>
</body></html>

View file

@ -1,4 +0,0 @@
<Files ~ "^at-charset-00[1-6].css$">
AddCharset Shift_JIS .css
</Files>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div><span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
</div>
</body></html>

View file

@ -0,0 +1,60 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("resources/FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div id="insertionpoint"></div>
<script>
var insertionpoint = document.getElementById("insertionpoint");
function addElement(feature, c) {
["0", "1"].map(function(state) {
var element = document.createElement("span");
element.textContent = c;
element.style.fontFamily = "FontFeaturesTest";
element.style.webkitFontFeatureSettings = '"' + feature + '" ' + state;
insertionpoint.appendChild(element);
});
insertionpoint.appendChild(document.createTextNode(" "));
}
addElement("liga", "C");
addElement("clig", "D");
addElement("dlig", "E");
addElement("hlig", "F");
addElement("calt", "G");
addElement("subs", "H");
addElement("sups", "I");
addElement("smcp", "J");
addElement("c2sc", "K");
addElement("pcap", "L");
addElement("c2pc", "M");
addElement("unic", "N");
addElement("titl", "O");
addElement("onum", "P");
addElement("pnum", "Q");
addElement("tnum", "R");
addElement("frac", "S");
//addElement("afrc", "T");
addElement("ordn", "U");
addElement("zero", "V");
addElement("hist", "W");
addElement("jp78", "X");
addElement("jp83", "Y");
addElement("jp90", "Z");
addElement("jp04", "a");
addElement("smpl", "b");
addElement("trad", "c");
addElement("fwid", "d");
addElement("pwid", "e");
addElement("ruby", "f");
</script>
</body></html>

View file

@ -10,6 +10,7 @@
<meta name="assert" content="Synthetic bold text should render differently than normal text">
<style type="text/css">
div { font-size: 36px; }
span#verify {font-family: "CSSTest Verify";}
div#test1 {
font-family: CSSTest Verify;
}

View file

@ -10,6 +10,7 @@
<meta name="assert" content="Synthetic italic text should render differently than normal text">
<style type="text/css">
div { font-size: 36px; }
span#verify {font-family: "CSSTest Verify";}
div#test1 {
font-family: CSSTest Verify;
}

View file

@ -37,7 +37,7 @@
<tbody id="s4">
<tr><th><a href="chapter-4.htm">Chapter 4 -
Font Resources</a></th>
<td>(1 Tests)</td></tr>
<td>(2 Tests)</td></tr>
</tbody>
<tbody id="s5">
<tr><th><a href="chapter-5.htm">Chapter 5 -

View file

@ -151,8 +151,8 @@ html/font-050.htm 7362a5438af7422edbe4049cda397478138b3f40 ?
xhtml1/font-050.xht 7362a5438af7422edbe4049cda397478138b3f40 ?
html/font-051.htm efef7a582c311ae29c7c42700bc85c3eadfc8862 ?
xhtml1/font-051.xht efef7a582c311ae29c7c42700bc85c3eadfc8862 ?
html/font-052.htm 5fd698891b31ef820b576a6fb55d235064abeac3 ?
xhtml1/font-052.xht 5fd698891b31ef820b576a6fb55d235064abeac3 ?
html/font-052.htm 4a99ae8da2373641901553b7d6b9b2df09ccda85 ?
xhtml1/font-052.xht 4a99ae8da2373641901553b7d6b9b2df09ccda85 ?
html/font-144.htm 9ecc9ca06cc5fe8b32dea107611e45e64e32a19d ?
xhtml1/font-144.xht 9ecc9ca06cc5fe8b32dea107611e45e64e32a19d ?
html/font-145.htm e1e0b21507f2adf30d09bb26281ba2c4241f0684 ?
@ -191,6 +191,8 @@ html/font-applies-to-016.htm bf37c948fee9069d8f9e2251a62b124d8f91ae41 ?
xhtml1/font-applies-to-016.xht bf37c948fee9069d8f9e2251a62b124d8f91ae41 ?
html/font-applies-to-017.htm 391b67fe41b021e22b2cff6713ed3fdbd9456a67 ?
xhtml1/font-applies-to-017.xht 391b67fe41b021e22b2cff6713ed3fdbd9456a67 ?
html/font-face-unicode-range-2.htm 0aaefa836b017cdbd0d6f3639749bc34323089ff ?
xhtml1/font-face-unicode-range-2.xht 0aaefa836b017cdbd0d6f3639749bc34323089ff ?
html/font-face-unicode-range.htm fb9d5d8783d57aef35f79c941abedffdfe5350ed ?
xhtml1/font-face-unicode-range.xht fb9d5d8783d57aef35f79c941abedffdfe5350ed ?
html/font-family-001.htm bba29a131bbbc012b700948f820334dc00cbeddb ?
@ -319,8 +321,8 @@ html/font-family-rule-003.htm bda9c4984d051cdc2f4c583843cabd4105a42158 ?
xhtml1/font-family-rule-003.xht bda9c4984d051cdc2f4c583843cabd4105a42158 ?
html/font-family-rule-004.htm 8d0e709ba88461c8d8f3d033321b2ac215132987 ?
xhtml1/font-family-rule-004.xht 8d0e709ba88461c8d8f3d033321b2ac215132987 ?
html/font-family-rule-004a.htm 00c14ac17d4c2794348d56bbb4f4b56b79e7be6b ?
xhtml1/font-family-rule-004a.xht 00c14ac17d4c2794348d56bbb4f4b56b79e7be6b ?
html/font-family-rule-004a.htm ef68a33bb16bf2e101cac1d9037b94ed3b0fcc32 ?
xhtml1/font-family-rule-004a.xht ef68a33bb16bf2e101cac1d9037b94ed3b0fcc32 ?
html/font-family-rule-005.htm 6db6b5638fb2acc0ad428cc4b6d0010693b14b76 ?
xhtml1/font-family-rule-005.xht 6db6b5638fb2acc0ad428cc4b6d0010693b14b76 ?
html/font-family-rule-006.htm 7a988f92dfeab19f62d907c58d598046abcab63e ?
@ -767,10 +769,10 @@ html/fonts-013.htm c51d7c91c63c3668bc03a2a9fdf35bdea0043c46 ?
xhtml1/fonts-013.xht c51d7c91c63c3668bc03a2a9fdf35bdea0043c46 ?
html/fonts-014.htm 2e0481edb25ec1143e7a83c2208ecc413691cfe7 ?
xhtml1/fonts-014.xht 2e0481edb25ec1143e7a83c2208ecc413691cfe7 ?
html/test-synthetic-bold.htm 289bc51877159287975be633c2ee2118b87f6421 ?
xhtml1/test-synthetic-bold.xht 289bc51877159287975be633c2ee2118b87f6421 ?
html/test-synthetic-italic.htm 7311bf5ca7d29f6ddc86d73fbbcb4be6bb8b6977 ?
xhtml1/test-synthetic-italic.xht 7311bf5ca7d29f6ddc86d73fbbcb4be6bb8b6977 ?
html/test-synthetic-bold.htm 86b1c489ef051793c46b397cf5b162d0aed58d0e ?
xhtml1/test-synthetic-bold.xht 86b1c489ef051793c46b397cf5b162d0aed58d0e ?
html/test-synthetic-italic.htm 1afe6706bc2f079f658923f94a4ade061b27d46e ?
xhtml1/test-synthetic-italic.xht 1afe6706bc2f079f658923f94a4ade061b27d46e ?
html/test_font_family_parsing.htm 0e4aa262ea1e9c8d4f4f1a9d1fe0cbd9ed8c75dd ?
xhtml1/test_font_family_parsing.xht 0e4aa262ea1e9c8d4f4f1a9d1fe0cbd9ed8c75dd ?
html/test_font_feature_values_parsing.htm 7eeb2572c3917be3f23f2ee6fdd3098cc2eb0462 ?

View file

@ -132,6 +132,7 @@
<p>Many thanks to the following for their contributions:</p>
<ul>
<li>Arron Eicholz</li>
<li>Chris Lilley</li>
<li>Elika J. Etemad</li>
<li>G&eacute;rard Talbot</li>
<li>Ian Hickson</li>

View file

@ -132,6 +132,7 @@
<p>Many thanks to the following for their contributions:</p>
<ul>
<li>Arron Eicholz</li>
<li>Chris Lilley</li>
<li>Elika J. Etemad</li>
<li>G&eacute;rard Talbot</li>
<li>Ian Hickson</li>

View file

@ -73,7 +73,7 @@ font-048 font - system fonts ahem http://www.w3.org/TR/CSS21/fonts.html#font-sh
font-049 font - system fonts ahem http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop 3868ecd063bbe2be584045ba320756a4ee5609ef `G&eacute;rard Talbot`<http://www.gtalbot.org/BrowserBugsSection/css21testsuite/> A system font sets all of the font subproperties at the same time; then each font subproperty can be altered individually
font-050 font - system fonts ahem http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop 7362a5438af7422edbe4049cda397478138b3f40 `G&eacute;rard Talbot`<http://www.gtalbot.org/BrowserBugsSection/css21testsuite/> A system font sets all of the font subproperties at the same time; then each font subproperty can be altered individually
font-051 reference/font-051-ref font shorthand - minimal requirements ahem,invalid http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop efef7a582c311ae29c7c42700bc85c3eadfc8862 `G&eacute;rard Talbot`<http://www.gtalbot.org/BrowserBugsSection/css21testsuite/> Font shorthand requires at minimum 2 font subproperties (unless resorting to a system font): font-size and font-family.
font-052 font shorthand - reserved keywords font http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop 5fd698891b31ef820b576a6fb55d235064abeac3 `G&eacute;rard Talbot`<http://www.gtalbot.org/BrowserBugsSection/css21testsuite/>,`John Daggett`<jdaggett@mozilla.com> This test verifies different valid and invalid font shorthand declarations involving reserved keywords (caption, inherit).
font-052 font shorthand - reserved keywords font http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop 4a99ae8da2373641901553b7d6b9b2df09ccda85 `G&eacute;rard Talbot`<http://www.gtalbot.org/BrowserBugsSection/css21testsuite/>,`John Daggett`<mailto:jdaggett@mozilla.com> This test verifies different valid and invalid font shorthand declarations involving reserved keywords (caption, inherit).
font-144 Parsing the 'font' shorthand ahem http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop 9ecc9ca06cc5fe8b32dea107611e45e64e32a19d `Ian Hickson`<mailto:ian@hixie.ch>
font-145 The 'font' property with line-height: normal ahem http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop e1e0b21507f2adf30d09bb26281ba2c4241f0684 `Ian Hickson`<mailto:ian@hixie.ch>
font-146 reference/font-146-ref font shorthand and negative line-heights ahem,invalid http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop 09f8e5a5c1e8bc5e8f5acdc3729df3154429f934 `Ian Hickson`<mailto:ian@hixie.ch>
@ -94,6 +94,7 @@ font-applies-to-015 reference/font-applies-to-001-ref Font and 'display: table-c
font-applies-to-016 reference/ref-if-there-is-no-red Font and 'display: none' elements http://www.w3.org/TR/CSS21/fonts.html#propdef-font,http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop bf37c948fee9069d8f9e2251a62b124d8f91ae41 `Microsoft`<http://www.microsoft.com/> The 'font' property applies to 'display: table-row' elements.
font-applies-to-017 reference/font-applies-to-001-ref Font and 'display: inherit' elements http://www.w3.org/TR/CSS21/fonts.html#propdef-font,http://www.w3.org/TR/CSS21/fonts.html#font-shorthand,http://www.w3.org/TR/css-fonts-3/#font-prop 391b67fe41b021e22b2cff6713ed3fdbd9456a67 `Microsoft`<http://www.microsoft.com/> The 'font' property applies to 'display: inherit' elements.
font-face-unicode-range font-face unicode-range http://www.w3.org/TR/css-fonts-3/#unicode-range-desc fb9d5d8783d57aef35f79c941abedffdfe5350ed `Intel`<http://www.intel.com> Check if the font-face unicode-range value impacts the content style
font-face-unicode-range-2 font-face unicode-range http://www.w3.org/TR/css-fonts-3/#unicode-range-desc 0aaefa836b017cdbd0d6f3639749bc34323089ff `Chris Lilley`<chris@w3.org> Check that font-face unicode-range restrics use of glyphs outside that range
font-family-001 Font-family set to an installed font ahem http://www.w3.org/TR/CSS21/fonts.html#propdef-font-family,http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop bba29a131bbbc012b700948f820334dc00cbeddb `Microsoft`<http://www.microsoft.com/> The 'font-family' property set to and installed font renders the appropriate font.
font-family-002 Font-family set to the keyword 'serif' ahem http://www.w3.org/TR/CSS21/fonts.html#propdef-font-family,http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop 782d2daafa3481835f4e229312577b0213557098 `Microsoft`<http://www.microsoft.com/> The 'font-family' property set to 'serif' correctly renders the user agent's serif font.
font-family-003 Font-family set to the keyword 'sans-serif' ahem http://www.w3.org/TR/CSS21/fonts.html#propdef-font-family,http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop 3dd563d8faccaed2ea5dec5faf37044720d0523f `Microsoft`<http://www.microsoft.com/> The 'font-family' property set to 'sans-serif' correctly renders the user agent's sans-serif font.
@ -157,7 +158,7 @@ font-family-rule-002 Font-family with white space font http://www.w3.org/TR/CSS
font-family-rule-002a reference/font-family-rule-002a-ref Unquoted and unescaped font-family name with white spaces font http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop b6c8051cbc326878227e1893583f987299ea53a0 `G&eacute;rard Talbot`<http://www.gtalbot.org/BrowserBugsSection/css21testsuite/> Any white space characters before or after an unquoted and unescaped font-family name are removed. Any sequence of white space characters between identifiers of an unquoted and unescaped font-family name should be converted to a single white space separating its identifiers.
font-family-rule-003 Font family name with special character, quoted font,invalid http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop bda9c4984d051cdc2f4c583843cabd4105a42158 `Microsoft`<http://www.microsoft.com/> Font names containing any special characters can be quoted. Otherwise the special character need to be escaped.
font-family-rule-004 Font family name same as keyword 'inherit' font http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop 8d0e709ba88461c8d8f3d033321b2ac215132987 `Microsoft`<http://www.microsoft.com/> Font family named 'inherit' needs to be quoted to avoid conflict with keyword 'inherit'.
font-family-rule-004a font-family - inherit as part of font-family name font,invalid http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop 00c14ac17d4c2794348d56bbb4f4b56b79e7be6b `G&eacute;rard Talbot`<http://www.gtalbot.org/BrowserBugsSection/css21testsuite/>,`John Daggett`<jdaggett@mozilla.com> This test verifies 9 font-family declarations with inherit and 2 font-family declarations with invalid identifiers.
font-family-rule-004a font-family - inherit as part of font-family name font,invalid http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop ef68a33bb16bf2e101cac1d9037b94ed3b0fcc32 `G&eacute;rard Talbot`<http://www.gtalbot.org/BrowserBugsSection/css21testsuite/>,`John Daggett`<mailto:jdaggett@mozilla.com> This test verifies 9 font-family declarations with inherit and 2 font-family declarations with invalid identifiers.
font-family-rule-005 reference/font-family-rule-005-ref Font family unknown character glyph matching dom http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop 6db6b5638fb2acc0ad428cc4b6d0010693b14b76 `Microsoft`<http://www.microsoft.com/> Glyphs that are missing render as the missing glyph character and still report their initial character location, not the missing glyph location.
font-family-rule-006 Font family generic name cannot be quoted ahem http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop 7a988f92dfeab19f62d907c58d598046abcab63e `Microsoft`<http://www.microsoft.com/> Generic font family name is not recognized if quoted.
font-family-rule-007 Font family name with special characters, escaped font,invalid http://www.w3.org/TR/CSS21/fonts.html#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-family-prop f9de90c680fd8b3fb6bd68fe3ea5e4ad82e811e8 `Microsoft`<http://www.microsoft.com/> Font family name having special characters needs to escape special character. Otherwise the font family name need to be quoted.
@ -381,7 +382,7 @@ fonts-011 reference/fonts-011-ref Fonts and bidi ahem http://www.w3.org/TR/CSS21
fonts-012 reference/fonts-012-ref Fonts and not bidi ahem http://www.w3.org/TR/CSS21/fonts.html#algorithm,http://www.w3.org/TR/css-fonts-3/#font-matching-algorithm 5184f6166f15bad6d3a2f5919da1bd75f315fa84 `Ian Hickson`<mailto:ian@hixie.ch>
fonts-013 reference/fonts-013-ref font and fallbacks ahem http://www.w3.org/TR/CSS21/fonts.html#algorithm,http://www.w3.org/TR/css-fonts-3/#font-matching-algorithm c51d7c91c63c3668bc03a2a9fdf35bdea0043c46 `Ian Hickson`<mailto:ian@hixie.ch>
fonts-014 reference/fonts-013-ref font and fallbacks ahem http://www.w3.org/TR/CSS21/fonts.html#algorithm,http://www.w3.org/TR/css-fonts-3/#font-matching-algorithm 2e0481edb25ec1143e7a83c2208ecc413691cfe7 `Ian Hickson`<mailto:ian@hixie.ch>
test-synthetic-bold Test for synthetic bold rendering font http://www.w3.org/TR/CSS21/fonts.html#propdef-font-weight,http://www.w3.org/TR/CSS21/fonts.html#font-boldness,http://www.w3.org/TR/css-fonts-3/#font-weight-prop 289bc51877159287975be633c2ee2118b87f6421 `Mozilla`<http://www.mozilla.com/> Synthetic bold text should render differently than normal text
test-synthetic-italic Test for synthetic italic rendering font http://www.w3.org/TR/CSS21/fonts.html#propdef-font-style,http://www.w3.org/TR/CSS21/fonts.html#font-styling,http://www.w3.org/TR/css-fonts-3/#font-style-prop 7311bf5ca7d29f6ddc86d73fbbcb4be6bb8b6977 `Mozilla`<http://www.mozilla.com/> Synthetic italic text should render differently than normal text
test-synthetic-bold Test for synthetic bold rendering font http://www.w3.org/TR/CSS21/fonts.html#propdef-font-weight,http://www.w3.org/TR/CSS21/fonts.html#font-boldness,http://www.w3.org/TR/css-fonts-3/#font-weight-prop 86b1c489ef051793c46b397cf5b162d0aed58d0e `Mozilla`<http://www.mozilla.com/> Synthetic bold text should render differently than normal text
test-synthetic-italic Test for synthetic italic rendering font http://www.w3.org/TR/CSS21/fonts.html#propdef-font-style,http://www.w3.org/TR/CSS21/fonts.html#font-styling,http://www.w3.org/TR/css-fonts-3/#font-style-prop 1afe6706bc2f079f658923f94a4ade061b27d46e `Mozilla`<http://www.mozilla.com/> Synthetic italic text should render differently than normal text
test_font_family_parsing Font family name parsing tests script http://www.w3.org/TR/css-fonts-3/#font-family-prop,http://www.w3.org/TR/css-fonts-3/#font-prop 0e4aa262ea1e9c8d4f4f1a9d1fe0cbd9ed8c75dd `John Daggett`<mailto:jdaggett@mozilla.com> tests that valid font family names parse and invalid ones don't
test_font_feature_values_parsing @font-feature-values rule parsing tests script http://www.w3.org/TR/css-fonts-3/#font-feature-values 7eeb2572c3917be3f23f2ee6fdd3098cc2eb0462 `John Daggett`<mailto:jdaggett@mozilla.com> tests that valid @font-feature-values rules parse and invalid ones don't

View file

@ -13,7 +13,7 @@
<body>
<h1>CSS Fonts Module Level 3 CR Test Suite</h1>
<h2>Font Resources (1 tests)</h2>
<h2>Font Resources (2 tests)</h2>
<table width="100%">
<col id="test-column"></col>
<col id="refs-column"></col>
@ -94,7 +94,7 @@
<tr><th colspan="4" scope="rowgroup">
<a href="#s4.5">+</a>
<a href="https://www.w3.org/TR/css-fonts-3/#unicode-range-desc">4.5 Character range: the unicode-range descriptor</a></th></tr>
<!-- 1 tests -->
<!-- 2 tests -->
<tr id="font-face-unicode-range-4.5" class="">
<td>
<a href="font-face-unicode-range.xht">font-face-unicode-range</a></td>
@ -106,6 +106,17 @@
</ul>
</td>
</tr>
<tr id="font-face-unicode-range-2-4.5" class="">
<td>
<a href="font-face-unicode-range-2.xht">font-face-unicode-range-2</a></td>
<td></td>
<td></td>
<td>font-face unicode-range
<ul class="assert">
<li>Check that font-face unicode-range restrics use of glyphs outside that range</li>
</ul>
</td>
</tr>
</tbody>
<tbody id="s4.5.#descdef-unicode-range">
<!-- 0 tests -->

View file

@ -6,7 +6,7 @@
<title>CSS Test: font shorthand - reserved keywords</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<link rel="author" title="John Daggett" href="jdaggett@mozilla.com" />
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com" />
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand" title="15.8 Shorthand font property: the 'font' property" />
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop" title="3.7 Shorthand font property: the font property" />
<link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012May/0878.html" title="Re: [css2.1][css3-fonts] keywords in unquoted font family names" />

View file

@ -0,0 +1,36 @@
<!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>

View file

@ -6,7 +6,7 @@
<title>CSS Test: font-family - inherit as part of font-family name</title>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<link rel="author" title="John Daggett" href="jdaggett@mozilla.com" />
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com" />
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop" title="15.3 Font family: the 'font-family' property" />
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-family-prop" title="3.1 Font family: the font-family property" />
<link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012May/0878.html" title="Re: [css2.1][css3-fonts] keywords in unquoted font family names" />

View file

@ -1,4 +0,0 @@
<Files ~ "^at-charset-00[1-6].css$">
AddCharset Shift_JIS .css
</Files>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div><span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
</div>
</body></html>

View file

@ -0,0 +1,60 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("resources/FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div id="insertionpoint"></div>
<script>
var insertionpoint = document.getElementById("insertionpoint");
function addElement(feature, c) {
["0", "1"].map(function(state) {
var element = document.createElement("span");
element.textContent = c;
element.style.fontFamily = "FontFeaturesTest";
element.style.webkitFontFeatureSettings = '"' + feature + '" ' + state;
insertionpoint.appendChild(element);
});
insertionpoint.appendChild(document.createTextNode(" "));
}
addElement("liga", "C");
addElement("clig", "D");
addElement("dlig", "E");
addElement("hlig", "F");
addElement("calt", "G");
addElement("subs", "H");
addElement("sups", "I");
addElement("smcp", "J");
addElement("c2sc", "K");
addElement("pcap", "L");
addElement("c2pc", "M");
addElement("unic", "N");
addElement("titl", "O");
addElement("onum", "P");
addElement("pnum", "Q");
addElement("tnum", "R");
addElement("frac", "S");
//addElement("afrc", "T");
addElement("ordn", "U");
addElement("zero", "V");
addElement("hist", "W");
addElement("jp78", "X");
addElement("jp83", "Y");
addElement("jp90", "Z");
addElement("jp04", "a");
addElement("smpl", "b");
addElement("trad", "c");
addElement("fwid", "d");
addElement("pwid", "e");
addElement("ruby", "f");
</script>
</body></html>

View file

@ -1,4 +0,0 @@
<Files ~ "^at-charset-00[1-6].css$">
AddCharset Shift_JIS .css
</Files>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div><span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
</div>
</body></html>

View file

@ -0,0 +1,60 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("resources/FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div id="insertionpoint"></div>
<script>
var insertionpoint = document.getElementById("insertionpoint");
function addElement(feature, c) {
["0", "1"].map(function(state) {
var element = document.createElement("span");
element.textContent = c;
element.style.fontFamily = "FontFeaturesTest";
element.style.webkitFontFeatureSettings = '"' + feature + '" ' + state;
insertionpoint.appendChild(element);
});
insertionpoint.appendChild(document.createTextNode(" "));
}
addElement("liga", "C");
addElement("clig", "D");
addElement("dlig", "E");
addElement("hlig", "F");
addElement("calt", "G");
addElement("subs", "H");
addElement("sups", "I");
addElement("smcp", "J");
addElement("c2sc", "K");
addElement("pcap", "L");
addElement("c2pc", "M");
addElement("unic", "N");
addElement("titl", "O");
addElement("onum", "P");
addElement("pnum", "Q");
addElement("tnum", "R");
addElement("frac", "S");
//addElement("afrc", "T");
addElement("ordn", "U");
addElement("zero", "V");
addElement("hist", "W");
addElement("jp78", "X");
addElement("jp83", "Y");
addElement("jp90", "Z");
addElement("jp04", "a");
addElement("smpl", "b");
addElement("trad", "c");
addElement("fwid", "d");
addElement("pwid", "e");
addElement("ruby", "f");
</script>
</body></html>

View file

@ -10,6 +10,7 @@
<meta name="assert" content="Synthetic bold text should render differently than normal text" />
<style type="text/css">
div { font-size: 36px; }
span#verify {font-family: "CSSTest Verify";}
div#test1 {
font-family: CSSTest Verify;
}

View file

@ -10,6 +10,7 @@
<meta name="assert" content="Synthetic italic text should render differently than normal text" />
<style type="text/css">
div { font-size: 36px; }
span#verify {font-family: "CSSTest Verify";}
div#test1 {
font-family: CSSTest Verify;
}

View file

@ -37,7 +37,7 @@
<tbody id="s4">
<tr><th><a href="chapter-4.xht">Chapter 4 -
Font Resources</a></th>
<td>(1 Tests)</td></tr>
<td>(2 Tests)</td></tr>
</tbody>
<tbody id="s5">
<tr><th><a href="chapter-5.xht">Chapter 5 -

View file

@ -13,7 +13,7 @@
<body>
<h1>CSS Fonts Module Level 3 CR Test Suite</h1>
<h2>Font Resources (1 tests)</h2>
<h2>Font Resources (2 tests)</h2>
<table width="100%">
<col id="test-column"></col>
<col id="refs-column"></col>
@ -94,7 +94,7 @@
<tr><th colspan="4" scope="rowgroup">
<a href="#s4.5">+</a>
<a href="https://www.w3.org/TR/css-fonts-3/#unicode-range-desc">4.5 Character range: the unicode-range descriptor</a></th></tr>
<!-- 1 tests -->
<!-- 2 tests -->
<tr id="font-face-unicode-range-4.5" class="">
<td>
<a href="font-face-unicode-range.xht">font-face-unicode-range</a></td>
@ -106,6 +106,17 @@
</ul>
</td>
</tr>
<tr id="font-face-unicode-range-2-4.5" class="">
<td>
<a href="font-face-unicode-range-2.xht">font-face-unicode-range-2</a></td>
<td></td>
<td></td>
<td>font-face unicode-range
<ul class="assert">
<li>Check that font-face unicode-range restrics use of glyphs outside that range</li>
</ul>
</td>
</tr>
</tbody>
<tbody id="s4.5.#descdef-unicode-range">
<!-- 0 tests -->

View file

@ -15,7 +15,7 @@
</style>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<link rel="author" title="John Daggett" href="jdaggett@mozilla.com" />
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com" />
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-shorthand" title="15.8 Shorthand font property: the 'font' property" />
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-prop" title="3.7 Shorthand font property: the font property" />
<link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012May/0878.html" title="Re: [css2.1][css3-fonts] keywords in unquoted font family names" />

View file

@ -0,0 +1,36 @@
<!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>

View file

@ -15,7 +15,7 @@
</style>
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
<link rel="author" title="John Daggett" href="jdaggett@mozilla.com" />
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com" />
<link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-family-prop" title="15.3 Font family: the 'font-family' property" />
<link rel="help" href="http://www.w3.org/TR/css-fonts-3/#font-family-prop" title="3.1 Font family: the font-family property" />
<link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2012May/0878.html" title="Re: [css2.1][css3-fonts] keywords in unquoted font family names" />

View file

@ -1,4 +0,0 @@
<Files ~ "^at-charset-00[1-6].css$">
AddCharset Shift_JIS .css
</Files>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div><span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
</div>
</body></html>

View file

@ -0,0 +1,60 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("resources/FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div id="insertionpoint"></div>
<script>
var insertionpoint = document.getElementById("insertionpoint");
function addElement(feature, c) {
["0", "1"].map(function(state) {
var element = document.createElement("span");
element.textContent = c;
element.style.fontFamily = "FontFeaturesTest";
element.style.webkitFontFeatureSettings = '"' + feature + '" ' + state;
insertionpoint.appendChild(element);
});
insertionpoint.appendChild(document.createTextNode(" "));
}
addElement("liga", "C");
addElement("clig", "D");
addElement("dlig", "E");
addElement("hlig", "F");
addElement("calt", "G");
addElement("subs", "H");
addElement("sups", "I");
addElement("smcp", "J");
addElement("c2sc", "K");
addElement("pcap", "L");
addElement("c2pc", "M");
addElement("unic", "N");
addElement("titl", "O");
addElement("onum", "P");
addElement("pnum", "Q");
addElement("tnum", "R");
addElement("frac", "S");
//addElement("afrc", "T");
addElement("ordn", "U");
addElement("zero", "V");
addElement("hist", "W");
addElement("jp78", "X");
addElement("jp83", "Y");
addElement("jp90", "Z");
addElement("jp04", "a");
addElement("smpl", "b");
addElement("trad", "c");
addElement("fwid", "d");
addElement("pwid", "e");
addElement("ruby", "f");
</script>
</body></html>

View file

@ -1,4 +0,0 @@
<Files ~ "^at-charset-00[1-6].css$">
AddCharset Shift_JIS .css
</Files>

View file

@ -0,0 +1,46 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div><span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
<span style="font-family: FontFeaturesTest;">BA</span>
</div>
</body></html>

View file

@ -0,0 +1,60 @@
<!DOCTYPE html>
<html><head>
<style>
@font-face {
font-family: "FontFeaturesTest";
src: url("resources/FontWithFeatures.otf") format("opentype");
}
</style>
</head>
<body>
This tests that font features are able to be turned on and off as desired. It uses a special font
designed specifically for this purpose. The test passes if you see a sequence of alternating check
marks and X below.
<div id="insertionpoint"></div>
<script>
var insertionpoint = document.getElementById("insertionpoint");
function addElement(feature, c) {
["0", "1"].map(function(state) {
var element = document.createElement("span");
element.textContent = c;
element.style.fontFamily = "FontFeaturesTest";
element.style.webkitFontFeatureSettings = '"' + feature + '" ' + state;
insertionpoint.appendChild(element);
});
insertionpoint.appendChild(document.createTextNode(" "));
}
addElement("liga", "C");
addElement("clig", "D");
addElement("dlig", "E");
addElement("hlig", "F");
addElement("calt", "G");
addElement("subs", "H");
addElement("sups", "I");
addElement("smcp", "J");
addElement("c2sc", "K");
addElement("pcap", "L");
addElement("c2pc", "M");
addElement("unic", "N");
addElement("titl", "O");
addElement("onum", "P");
addElement("pnum", "Q");
addElement("tnum", "R");
addElement("frac", "S");
//addElement("afrc", "T");
addElement("ordn", "U");
addElement("zero", "V");
addElement("hist", "W");
addElement("jp78", "X");
addElement("jp83", "Y");
addElement("jp90", "Z");
addElement("jp04", "a");
addElement("smpl", "b");
addElement("trad", "c");
addElement("fwid", "d");
addElement("pwid", "e");
addElement("ruby", "f");
</script>
</body></html>

View file

@ -19,6 +19,7 @@
<meta name="assert" content="Synthetic bold text should render differently than normal text" />
<style type="text/css">
div { font-size: 36px; }
span#verify {font-family: "CSSTest Verify";}
div#test1 {
font-family: CSSTest Verify;
}

View file

@ -19,6 +19,7 @@
<meta name="assert" content="Synthetic italic text should render differently than normal text" />
<style type="text/css">
div { font-size: 36px; }
span#verify {font-family: "CSSTest Verify";}
div#test1 {
font-family: CSSTest Verify;
}

View file

@ -37,7 +37,7 @@
<tbody id="s4">
<tr><th><a href="chapter-4.xht">Chapter 4 -
Font Resources</a></th>
<td>(1 Tests)</td></tr>
<td>(2 Tests)</td></tr>
</tbody>
<tbody id="s5">
<tr><th><a href="chapter-5.xht">Chapter 5 -