blob: 61c3d3a4ced6d11646a0129260ab4d0989c9bb4c [file] [log] [blame]
<style>
body {
display: grid;
grid-template-columns: 100px 50px;
}
div {
container-type: inline-size;
background-color: blue;
}
span { background-color: red }
@container (width = 100px) {
span { background-color: green }
}
</style>
<body>
<div>
<span>1</span>
</div>
<div>
<span>2</span>
</div>
</body>