Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
@container (max-width: 250px) {
#target {
display: table;
}
}
</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>