summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-break/flexbox/multi-line-row-flex-fragmentation-065-ref.html
blob: 50cf3c34c6d5aca37cd406393e1afa58a9abccb2 (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
<!DOCTYPE html>
<title>
  Multi-line row flex fragmentation: row gaps should not be truncated by
  fragmentainer breaks (similar to flex-item margins).
</title>
<style>
  .multicol {
    columns: 2;
    column-fill: auto;
    width: 300px;
    height: 100px;
    margin: 20px;
    background: yellow;
  }
  .flex {
    display: flex;
    flex-wrap: wrap;
    background: gray;
  }
  .flex > div {
    contain: size;
    width: 100%;
    height: 50px;
    background: cyan;
  }
</style>
<p>Flex row gaps should <strong>not</strong> be truncated when a row breaks.</p>
<div class="multicol">
  <div class="flex">
    <div></div>
    <div style="margin-top:100px;"></div>
    <div style="margin-top:100px;"></div>
    <div style="margin-top:100px;"></div>
  </div>
</div>