summaryrefslogtreecommitdiffstats
path: root/layout/reftests/font-matching/font-shorthand-stretch-1.html
blob: 1ac3073bf581eb6164d260a6392774e79d20d2d8 (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
74
75
76
77
78
79
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
/* load 9 faces of DejaVu Sans in the "dvs" family, with appropriate style descriptors */
@font-face {
  font-family: dvs;
  src: url(../fonts/dejavu-sans/DejaVuSans.ttf);
}
@font-face {
  font-family: dvs;
  font-weight: bold;
  src: url(../fonts/dejavu-sans/DejaVuSans-Bold.ttf);
}
@font-face {
  font-family: dvs;
  font-style: italic;
  src: url(../fonts/dejavu-sans/DejaVuSans-Oblique.ttf);
}
@font-face {
  font-family: dvs;
  font-style: italic;
  font-weight: bold;
  src: url(../fonts/dejavu-sans/DejaVuSans-BoldOblique.ttf);
}
@font-face { /* note that there is no ExtraLight Condensed or Oblique */
  font-family: dvs;
  font-weight: 200;
  src: url(../fonts/dejavu-sans/DejaVuSans-ExtraLight.ttf);
}
@font-face {
  font-family: dvs;
  font-stretch: condensed;
  src: url(../fonts/dejavu-sans/DejaVuSansCondensed.ttf);
}
@font-face {
  font-family: dvs;
  font-weight: bold;
  font-stretch: condensed;
  src: url(../fonts/dejavu-sans/DejaVuSansCondensed-Bold.ttf);
}
@font-face {
  font-family: dvs;
  font-style: italic;
  font-stretch: condensed;
  src: url(../fonts/dejavu-sans/DejaVuSansCondensed-Oblique.ttf);
}
@font-face {
  font-family: dvs;
  font-style: italic;
  font-weight: bold;
  font-stretch: condensed;
  src: url(../fonts/dejavu-sans/DejaVuSansCondensed-BoldOblique.ttf);
}

body {
  font-family: dvs, serif;
  font-size: 24px;
}
.l {
  font-weight: 200;
}
</style>
</head>
<body>
<!-- all 4 levels of "condensed" come out the same; "condensed" takes priority over "light" -->
<div style="font: ultra-condensed 24px dvs, serif">ultra-condensed <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
<div style="font: extra-condensed 24px dvs, serif">extra-condensed <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
<div style="font: condensed 24px dvs, serif">condensed <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
<div style="font: semi-condensed 24px dvs, serif">semi-condensed <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
<!-- "normal" and all 4 levels of "expanded" come out the same; "light" is available, but only in upright, not italic -->
<div style="font: 24px dvs">normal <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
<div style="font: semi-expanded 24px dvs, serif">semi-expanded <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
<div style="font: expanded 24px dvs, serif">expanded <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
<div style="font: extra-expanded 24px dvs, serif">extra-expanded <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
<div style="font: ultra-expanded 24px dvs, serif">ultra-expanded <i>italic</i> <b>bold <i>italic</i></b> <span class="l">light <i>italic</i></span></div>
</body>
</html>