CKTIS / CSS
column-wrap — column overflow direction
The column-wrap property determines whether overflow columns continue in the inline direction or form additional rows in the block direction. It belongs to the CSS Multi-column Layout Level 2 working draft; the example needs verification in the target browser.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
column-wrap: auto | nowrap | wrap;column-wrap applies to multi-column containers and controls column placement when content cannot fit in one row. It does not wrap words or Flexbox items. Directions are logical: with the example's horizontal-tb and ltr, the inline axis runs rightward and the block axis downward.
nowrap creates overflow columns in the inline direction. wrap creates additional column rows in the block direction. The initial value, auto, behaves like wrap when column-height is not auto; otherwise it behaves like nowrap. The property is not inherited, its computed value is the specified keyword, and its animation type is discrete.
The example sets two columns and column-height: 40px. Each block occupies a full column height, so the expected layout places A and B in the first row and C and D in the second. Readers follow successive columns within a row before proceeding to the next row. Keep that reading order clear.
This is a working-draft feature, not a guarantee of support. The draft still identifies wrap with a container height and column-height: auto as unresolved; the example avoids that ambiguity. The columns shorthand resets column-wrap to auto, so place your override after it. The Chromium 152 scope does not replace local rendering verification.
Examples
<!doctype html>
<meta charset="utf-8">
<title>column-wrap</title>
<style>
.columns {
width: 220px;
writing-mode: horizontal-tb;
direction: ltr;
column-count: 2;
column-height: 40px;
column-wrap: wrap;
column-fill: auto;
column-gap: 20px;
row-gap: 10px;
font: 16px/20px monospace;
}
.columns > div {
height: 40px;
break-inside: avoid;
background: #def;
}
</style>
<div class="columns">
<div>A</div>
<div>B</div>
<div>C</div>
<div>D</div>
</div>Result
Expected visual layout when supported: A B C D
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.