summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/contain-size-multicol-as-flex-item.html
blob: 19aa12262f9a7dc35f3682b1f7baa3c12949a906 (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
<!DOCTYPE HTML>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://drafts.csswg.org/css-contain/#containment-size">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=863454">
<style>
  #flex {
    display: flex;
  }

  #multicol {
    columns: 3;
    min-width: 0;
    column-gap: 50px;
    contain:size;
    height:100px;
    background:green;
  }
</style>
<p>There should be a green square below.</p>
<div id="flex">
  <div id="multicol" data-expected-width="100" data-expected-height="100">
    <div style="width:1000px; height:1px;"></div>
  </div>
</div>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/check-layout-th.js"></script>
<script>
  checkLayout("#flex");
</script>