summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-font-loading/fontface-override-descriptors-ref.html
blob: a08e7e97e02467a38062419a002013ebfa9c9e39 (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
<!DOCTYPE html>
<title>Tests that the ascentOverride, descentOverride and lineGapOverride attributes of FontFace work</title>
<link rel="stylesheet" href="/fonts/ahem.css">
<style>
#target {
  position: absolute;
  font-family: Ahem;
  font-size: 20px;
}

#first-line {
  position: absolute;
  left: 0;
  top: 0.7em;
}

#second-line {
  position: absolute;
  left: 0;
  top: 3.7em;
}
</style>

<div id="target">
  <div id="first-line">XXXXX</div>
  <div id="second-line">XXXXX</div>
</div>