summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-font-loading/fontface-size-adjust-descriptor-ref.html
blob: e752f4110c6f62ae66b7f96ff9995b4f4e660c71 (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>Tests that the sizeAdjust attribute of FontFace works</title>
<script>
/* Load Ahem similarly to the testcase so that Gecko gives it the
   same antialiasing treatment. */
const ahem = new FontFace(
    'Ahem-normal',
    'local("Ahem"), url("/fonts/Ahem.ttf")');
document.fonts.add(ahem);
</script>
<style>
#target {
  font-family: "Ahem-normal";
  font-size: 40px;
  letter-spacing: 10px;
}
span {
  font-size: 50%;
}
</style>

<p>The first and fourth characters should be double-sized:</p>
<div id="target">
  F<span>oo</span>B<span>ar</span>
</div>