summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/linebox/vertical-align-top-bottom-padding-ref.html
blob: f855bab6a2f4a8845aebd98fb33b7c9e0d4adc8c (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
<!DOCTYPE html>
<style>
div {
  margin-top: 50px;
  font-size: 10px;
  line-height: 1;
}

.inline-block {
  display: inline-block;
  height: 30px;
  width: 30px;
  background: blue;
}

.top .inline-block {
  vertical-align: top;
}

.bottom .inline-block {
  vertical-align: bottom;
}

</style>
<body>
  <div class="top">
    <span>
      Next
      <span class="inline-block"></span>
    </span>
  </div>
  <div class="bottom">
    <span>
      Next
      <span class="inline-block"></span>
    </span>
  </div>
</body>