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: 500px) {
#target {
columns: 2;
}
}
</style>
<div id="container" style="container-type:inline-size; width:600px;">
<span id="target"></span>
</div>
<script>
document.body.offsetTop;
container.style.width = "400px";
</script>