summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-contain/container-queries/container-units-rule-cache.html
blob: cc93f7793ae6bd57a8ee30e5d6322a6ff43e93cb (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
<!doctype html>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/css-contain-3/#container-lengths">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1832481">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="author" href="https://mozilla.org" title="Mozilla">
<link rel="match" href="container-units-rule-cache-ref.html">
<style>
  .container {
    width: 100px;
    container-type: size;
  }

  .half {
    height: 50cqh;
    background-color: green;
  }
</style>
<div class="container" style="height: 100px">
  <div class="half"></div>
</div>
<div class="container" style="height: 200px">
  <div class="half"></div>
</div>