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/crashtests/grid-in-columns-002-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
@container (max-width: 250px) {
#target {
display: grid;
}
}
</style>
<div id="ancestor" style="columns:2; column-gap:0; width:600px;">
<div style="container-type:inline-size;">
<div id="target"></div>
</div>
</div>
<script>
document.body.offsetTop;
ancestor.style.width = "400px";
</script>