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 -