summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/positioning/abspos-block-level-001-ref.html
blob: 58f605dc7475d85e9cf03e2d1be55aab3bb200cf (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
<!DOCTYPE html>
<style>
.rtl {
  direction: rtl
}
.absolute {
  position: absolute;
}
.green {
  background-color: lime;
  padding: 0 1ch;
}
</style>
<body>
  <div>
    <span class="absolute green">Block-level abspos before inline content</span>
    <br>
  </div>
  <div>
    <div>Inline content</div>
    <div>Block-level abspos after inline content</div>
  </div>
  <div class=rtl>
    <span class="absolute green">Block-level abspos before inline content</span>
    <br>
  </div>
  <div class=rtl>
    <div>Inline content</div>
    <div>Block-level abspos after inline content</div>
  </div>
</body>