summaryrefslogtreecommitdiffstats
path: root/layout/reftests/font-matching/font-stretch-1-ref.html
blob: 2fe8f2cf31d5fbc717ff3c61a94ff68d28997c6d (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
/* each face is loaded as a separate family, so we can address them individually
   without involving the style-matching algorithm */
@font-face {
  font-family: dvs;
  src: url(../fonts/dejavu-sans/DejaVuSans.ttf);
}
@font-face {
  font-family: dvsb;
  src: url(../fonts/dejavu-sans/DejaVuSans-Bold.ttf);
}
@font-face {
  font-family: dvsi;
  src: url(../fonts/dejavu-sans/DejaVuSans-Oblique.ttf);
}
@font-face {
  font-family: dvsbi;
  src: url(../fonts/dejavu-sans/DejaVuSans-BoldOblique.ttf);
}
@font-face { /* note that there is no ExtraLight Condensed or Oblique */
  font-family: dvsl;
  src: url(../fonts/dejavu-sans/DejaVuSans-ExtraLight.ttf);
}
@font-face {
  font-family: dvsc;
  src: url(../fonts/dejavu-sans/DejaVuSansCondensed.ttf);
}
@font-face {
  font-family: dvscb;
  src: url(../fonts/dejavu-sans/DejaVuSansCondensed-Bold.ttf);
}
@font-face {
  font-family: dvsci;
  src: url(../fonts/dejavu-sans/DejaVuSansCondensed-Oblique.ttf);
}
@font-face {
  font-family: dvscbi;
  src: url(../fonts/dejavu-sans/DejaVuSansCondensed-BoldOblique.ttf);
}

body {
  font-family: dvs, serif;
  font-size: 24px;
}

.b { font-family: dvsb; }
.i { font-family: dvsi; }
.bi { font-family: dvsbi; }
.l { font-family: dvsl; }
.c { font-family: dvsc; }
.cb { font-family: dvscb; }
.ci { font-family: dvsci; }
.cbi { font-family: dvscbi; }
</style>
</head>
<body>
<!-- all 4 levels of "condensed" come out the same; "condensed" takes priority over "light" -->
<div class="c">ultra-condensed <span class="ci">italic</span> <span class="cb">bold <span class="cbi">italic</span></span> <span class="c">light <span class="ci">italic</span></span></div>
<div class="c">extra-condensed <span class="ci">italic</span> <span class="cb">bold <span class="cbi">italic</span></span> <span class="c">light <span class="ci">italic</span></span></div>
<div class="c">condensed <span class="ci">italic</span> <span class="cb">bold <span class="cbi">italic</span></span> <span class="c">light <span class="ci">italic</span></span></div>
<div class="c">semi-condensed <span class="ci">italic</span> <span class="cb">bold <span class="cbi">italic</span></span> <span class="c">light <span class="ci">italic</span></span></div>
<!-- "normal" and all 4 levels of "expanded" come out the same; "light" is available, but only in upright, not italic -->
<div>normal <span class="i">italic</span> <span class="b">bold <span class="bi">italic</span></span> <span class="l">light <span class="i">italic</span></span></div>
<div>semi-expanded <span class="i">italic</span> <span class="b">bold <span class="bi">italic</span></span> <span class="l">light <span class="i">italic</span></span></div>
<div>expanded <span class="i">italic</span> <span class="b">bold <span class="bi">italic</span></span> <span class="l">light <span class="i">italic</span></span></div>
<div>extra-expanded <span class="i">italic</span> <span class="b">bold <span class="bi">italic</span></span> <span class="l">light <span class="i">italic</span></span></div>
<div>ultra-expanded <span class="i">italic</span> <span class="b">bold <span class="bi">italic</span></span> <span class="l">light <span class="i">italic</span></span></div>
</body>
</html>