Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset="utf-8">
<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>