summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/alternates-order-ref.html
blob: fdb477fe168c17d21f5eecaf4d6a7aa6de4581ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<!DOCTYPE html>
<html>
<head>
<title>CSS Test: feature value matching for font-variant-alternates</title>
<link rel="author" title="John Daggett" href="mailto:jdaggett@mozilla.com"/>
<style type="text/css">
@font-face {
  font-family: libertine;
  src: url(support/fonts/LinLibertine_Re-4.7.5.woff) format("woff");
}
body {
  font-family: libertine, sans-serif;
  font-size: 800%;
  line-height: 1.2em;
}

div { margin: 0 20px; }
span {
  font-feature-settings: "ss05"; /* crossed W */
}

/* tests that should NOT use the feature, due to case-sensitivity of font-feature-values names */
#test2, #test3 { font-feature-settings: "ss05" off; }

</style>
</head>
<body lang="en">
<div><span id="test1">W</span> <span id="test2">W</span> <span id="test3">W</span></div>
<div><span id="test4">W</span> <span id="test5">W</span> <span id="test6">W</span></div>
<div><span id="test7">W</span> <span id="test8">W</span> <span id="test9">W</span></div>
</body>
</html>