summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/container-queries/multicol-inside-container.html
blob: 9fc8393a513f236996d60fdc39e2401a3dba0376 (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
<!doctype html>
<title>CSS Container Queries Test: Multicol inside size container</title>
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#size-container">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<style>
  #container {
    container-type: size;
    width: 200px;
    height: 100px;
  }
  @container (width <= 200px) {
    #multicol {
      column-count: 2;
      column-gap: 0;
    }
  }
  #green {
    display: inline-block;
    width: 100%;
    height: 100px;
    background-color: green;
    vertical-align: bottom;
  }
</style>
<p>Test passes if there is a filled green square.</p>
<div id="container">
  <div id="multicol"><div id="green"></div></div>
</div>