summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-multicol/relative-child-overflowing-column-gap.html
blob: 4359e7f7a71c1116eb80e0408c190baae59d72a4 (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>
<title>Relative child can overflow onto the column gap area</title>
<link rel="help" href="https://drafts.csswg.org/css-multicol/">
<link rel="match" href="relative-child-overflowing-column-gap-ref.html">

<style>
body {
  margin: 0px;
}

.multicol {
  width: 200px;
  column-count: 2;
  column-gap: 50px;
}

.relative-layer {
  position: relative;
}

.child {
  width: 100px;
  height: 100px;
  background: green;
}
</style>
<div class="multicol">
  <div class="relative-layer">
    <div class="child"></div>
  </div>
</div>