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

@ -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>