Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-conditional/container-queries/container-units-rule-cache.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<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>