CKTIS / CSS
min-block-size — minimum size on the block axis
min-block-size sets a lower bound on an element’s block-axis size. With horizontal-tb it constrains height; with vertical-rl and vertical-lr it constrains width, adapting the layout to the writing mode.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
/* Chromium 152 syntax: */
min-block-size: auto | <length-percentage [0,∞]> | min-content | max-content | fit-content | stretch | <calc-size()> | <anchor-size()>;
/* Use anchor-size() for anchor-positioned sizing. */
/* Also accepts CSS-wide keywords. */
/* The fit-content keyword is distinct from the draft fit-content(<length-percentage [0,∞]>) function, which Chromium 152 does not support for this property. */min-block-size specifies a box’s minimum size on the element’s block axis. Its mapping depends on the element’s writing-mode: with horizontal-tb it corresponds to min-height, and with vertical-rl and vertical-lr to min-width. It is neither a fixed height nor an inline-axis constraint; min-inline-size handles the latter.
You can supply a nonnegative length, a percentage, or a content-based value such as min-content or max-content. The specification also lists a functional form, such as fit-content(200px), but Chromium 152 does not support it for min-block-size. Check support in your target browsers before relying on it. Percentages refer to the corresponding dimension of the containing block; do not assume they behave like fixed lengths when that dimension is indefinite. For quantitative values such as lengths and percentages, box-sizing determines whether the constraint applies to the content box or the border box. It does not change how intrinsic sizing keywords such as min-content and max-content are evaluated. The minimum can enlarge the size requested by block-size and takes precedence over a smaller max-block-size.
The property is not inherited. CSS Sizing defines its initial value as auto, although the CSS Logical table still lists 0. The automatic minimum usually yields zero, but flex and grid rules can make it content-dependent; explicitly setting min-block-size: 0 can therefore allow an item to shrink. The example uses pixel lengths to demonstrate axis mapping only, not support for fit-content().
Examples
<!doctype html>
<meta charset="utf-8">
<title>min-block-size</title>
<style>
.box {
box-sizing: border-box;
inline-size: 120px;
block-size: 20px;
min-block-size: 80px;
margin: 8px;
background: steelblue;
}
#horizontal { writing-mode: horizontal-tb; }
#vertical { writing-mode: vertical-rl; }
</style>
<div id="horizontal" class="box"></div>
<div id="vertical" class="box"></div>Result
#horizontal: width = 120px, height = 80px #vertical: width = 80px, height = 120px
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.