Make color-filter affect caret-color
[WebKit-https.git] / LayoutTests / css3 / font-variant-petite-caps-synthesis.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 @font-face {
6     /* Opentype. "L" responds to pcap; "M" responds to c2pc */
7     font-family: "testfontotf";
8     src: url("resources/FontWithFeatures.otf") format("opentype");
9 }
10 @font-face {
11     /* Truetype. "S" responds to smcp; "V" responds to c2sc */
12     /* Truetype. "T" responds to smcp; "W" responds to c2sc */
13     font-family: "testfontttf";
14     src: url("resources/FontWithFeatures.ttf") format("truetype");
15 }
16 .test {
17     font-size: 20px;
18     display: inline-block;
19 }
20 </style>
21 </head>
22 <body>
23 This test makes sure that font-variant synthesis is correctly applied. The test passes when a particular pattern of Xs and checks appear below. Also note that the correct size of the character is required.
24 <div style="border: solid black 1px;">
25 <div class="test" style="font-variant-caps: petite-caps;">ASDF</div>
26 <div class="test" style="font-variant-caps: petite-caps;">asdf</div>
27 <div class="test" style="font-variant-caps: petite-caps;">asDF</div>
28 <div class="test" style="font-variant-caps: petite-caps;">ASdf</div>
29 <div class="test" style="font-variant-caps: all-petite-caps;">ASDF</div>
30 <div class="test" style="font-variant-caps: all-petite-caps;">asdf</div>
31 <div class="test" style="font-variant-caps: all-petite-caps;">asDF</div>
32 <div class="test" style="font-variant-caps: all-petite-caps;">ASdf</div>
33 </div>
34 <div style="font-family: testfontotf; border: solid black 1px; margin: 5px; font-feature-settings: 'ntrl';">
35 <div class="test">AB</div>
36 <div class="test">a</div>
37 <div class="test">L</div>
38 <div class="test">M</div>
39 <div class="test" style="font-variant-caps: petite-caps;">a</div>
40 <div class="test" style="font-variant-caps: petite-caps;">L</div>
41 <div class="test" style="font-variant-caps: petite-caps;">aL</div>
42 <div class="test" style="font-variant-caps: petite-caps;">La</div>
43 <div class="test" style="font-variant-caps: petite-caps;">AL</div>
44 <div class="test" style="font-variant-caps: petite-caps;">LA</div>
45 <div class="test" style="font-variant-caps: petite-caps;">M</div>
46 <div class="test" style="font-variant-caps: petite-caps;">aM</div>
47 <div class="test" style="font-variant-caps: petite-caps;">Ma</div>
48 <div class="test" style="font-variant-caps: petite-caps;">AM</div>
49 <div class="test" style="font-variant-caps: petite-caps;">MA</div>
50 </div>
51 <div style="font-family: testfontttf; border: solid black 1px; margin: 5px; font-feature-settings: 'ntrl';">
52 <div class="test">AB</div>
53 <div class="test">a</div>
54 <div class="test">T</div>
55 <div class="test">W</div>
56 <div class="test" style="font-variant-caps: petite-caps;">a</div>
57 <div class="test" style="font-variant-caps: petite-caps;">T</div>
58 <div class="test" style="font-variant-caps: petite-caps;">aT</div>
59 <div class="test" style="font-variant-caps: petite-caps;">Ta</div>
60 <div class="test" style="font-variant-caps: petite-caps;">AT</div>
61 <div class="test" style="font-variant-caps: petite-caps;">TA</div>
62 <div class="test" style="font-variant-caps: petite-caps;">W</div>
63 <div class="test" style="font-variant-caps: petite-caps;">aW</div>
64 <div class="test" style="font-variant-caps: petite-caps;">Wa</div>
65 <div class="test" style="font-variant-caps: petite-caps;">AW</div>
66 <div class="test" style="font-variant-caps: petite-caps;">WA</div>
67 </div>
68 <div style="font-family: testfontotf; border: solid blue 1px; margin: 5px; font-feature-settings: 'ntrl';">
69 <div class="test" style="font-variant-caps: all-petite-caps;">a</div>
70 <div class="test" style="font-variant-caps: all-petite-caps;">L</div>
71 <div class="test" style="font-variant-caps: all-petite-caps;">aL</div>
72 <div class="test" style="font-variant-caps: all-petite-caps;">La</div>
73 <div class="test" style="font-variant-caps: all-petite-caps;">AL</div>
74 <div class="test" style="font-variant-caps: all-petite-caps;">LA</div>
75 <div class="test" style="font-variant-caps: all-petite-caps;">M</div>
76 <div class="test" style="font-variant-caps: all-petite-caps;">aM</div>
77 <div class="test" style="font-variant-caps: all-petite-caps;">Ma</div>
78 <div class="test" style="font-variant-caps: all-petite-caps;">AM</div>
79 <div class="test" style="font-variant-caps: all-petite-caps;">MA</div>
80 </div>
81 <div style="font-family: testfontttf; border: solid blue 1px; margin: 5px; font-feature-settings: 'ntrl';">
82 <div class="test" style="font-variant-caps: all-petite-caps;">a</div>
83 <div class="test" style="font-variant-caps: all-petite-caps;">T</div>
84 <div class="test" style="font-variant-caps: all-petite-caps;">aT</div>
85 <div class="test" style="font-variant-caps: all-petite-caps;">Ta</div>
86 <div class="test" style="font-variant-caps: all-petite-caps;">AT</div>
87 <div class="test" style="font-variant-caps: all-petite-caps;">TA</div>
88 <div class="test" style="font-variant-caps: all-petite-caps;">W</div>
89 <div class="test" style="font-variant-caps: all-petite-caps;">aW</div>
90 <div class="test" style="font-variant-caps: all-petite-caps;">Wa</div>
91 <div class="test" style="font-variant-caps: all-petite-caps;">AW</div>
92 <div class="test" style="font-variant-caps: all-petite-caps;">WA</div>
93 </div>
94 </div>
95 </body>
96 </html>