Mark http/tests/websocket/tests/hybi/secure-cookie-secure-connection.pl as a failure...
[WebKit-https.git] / LayoutTests / css3 / font-feature-settings-font-face-rendering.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 @font-face {
6     font-family: "FontFeaturesTestOTF";
7     src: url("resources/FontWithFeatures.otf") format("opentype");
8 }
9 @font-face {
10     font-family: "FontFeaturesTestTTF";
11     src: url("resources/FontWithFeatures.ttf") format("truetype");
12 }
13 </style>
14 </head>
15 <body>
16 This tests that font features are able to be turned on and off as desired. It uses a special font
17 designed specifically for this purpose. The test passes if you see a sequence of alternating check
18 marks and X below.
19 <div id="insertionPoint"></div>
20 <div id="insertionPoint2"></div>
21 <script>
22 var insertionPoint = document.getElementById("insertionPoint");
23 var insertionPoint2 = document.getElementById("insertionPoint2");
24
25 var styleNode = document.createElement("style");
26 document.head.appendChild(styleNode);
27
28 function addElement(placeToInsert, familyName, extension, format, feature, c) {
29     ["0", "1"].map(function(state) {
30         styleNode.sheet.insertRule("@font-face { font-family: " + familyName + "_" + feature + "_" + state + "; src: url('resources/FontWithFeatures." + extension + "') format('" + format + "'); font-feature-settings: '" + feature + "'" + state + "; }", 0);
31         var element = document.createElement("span");
32         element.textContent = c + c;
33         element.style.fontFamily = familyName + "_" + feature + "_" + state;
34         placeToInsert.appendChild(element);
35     });
36     placeToInsert.appendChild(document.createTextNode(" "));
37 }
38
39 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "liga", "C");
40 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "clig", "D");
41 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "dlig", "E");
42 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "hlig", "F");
43 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "calt", "G");
44 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "subs", "H");
45 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "sups", "I");
46 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "smcp", "J");
47 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "c2sc", "K");
48 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "pcap", "L");
49 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "c2pc", "M");
50 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "unic", "N");
51 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "titl", "O");
52 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "lnum", "P");
53 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "onum", "Q");
54 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "pnum", "R");
55 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "tnum", "S");
56 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "frac", "T");
57 //addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "afrc", "U");
58 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "ordn", "V");
59 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "zero", "W");
60 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "hist", "X");
61 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "jp78", "Y");
62 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "jp83", "Z");
63 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "jp90", "a");
64 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "jp04", "b");
65 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "smpl", "c");
66 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "trad", "d");
67 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "fwid", "e");
68 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "pwid", "f");
69 addElement(insertionPoint, "FontFeaturesTestOTF", "otf", "opentype", "ruby", "g");
70
71 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "liga", "C");
72 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "liga", "D");
73 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "clig", "C");
74 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "clig", "D");
75 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "dlig", "G");
76 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "hlig", "I");
77 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "calt", "L");
78 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "subs", "O");
79 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "sups", "P");
80 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "smcp", "S");
81 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "c2sc", "V");
82 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "pcap", "T");
83 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "c2pc", "W");
84 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "unic", "Y");
85 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "titl", "a");
86 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "lnum", "c");
87 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "onum", "d");
88 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "pnum", "f");
89 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "tnum", "g");
90 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "frac", "i");
91 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "afrc", "j");
92 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "ordn", "Q");
93 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "zero", "k");
94 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "hist", "K");
95 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "jp78", "m");
96 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "jp83", "n");
97 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "jp90", "o");
98 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "jp04", "p");
99 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "smpl", "q");
100 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "trad", "r");
101 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "fwid", "t");
102 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "pwid", "u");
103 addElement(insertionPoint2, "FontFeaturesTestTTF", "ttf", "truetype", "ruby", "v");
104 </script>
105 </body>
106 </html>