summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/linebox/vertical-align-negative-leading-001-ref.html
blob: 912cd378e1bede5bb25126f3e76cdae9b286ce07 (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
<!DOCTYPE html>
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
.container {
  margin: 30px 0;
  color: orange;
  background-color: blue;
  line-height: 10px;
  font-size: 30px;
  font-family: Ahem;
}
.lh20 { line-height: 20px; }
.lh30 { line-height: 30px; }
.up5 { position: relative; top: -5px; }
.up10 { position: relative; top: -10px; }
.down5 { position: relative; top: 5px; }
.down10 { position: relative; top: 10px; }
</style>
<body>
<div class="container">
  <span>XX</span>
  <span>XX</span>
  <span>XX</span>
</div>
<div class="container lh30">
  <span class="up10">XX</span>
  <span>XX</span>
  <span class="down10">XX</span>
</div>
<div class="container"><span>XX</span></div>
<div class="container"><span>XX</span></div>
<div class="container lh20"><span class="up5">XX</span></div>
<div class="container lh20"><span class="down5">XX</span></div>
</body>