CKTIS / CSS
min-inline-size — minimum size along the inline axis
min-inline-size sets a lower bound on an element’s size along the text axis. Depending on writing-mode, it corresponds to min-width or min-height rather than always constraining physical width.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
min-inline-size: <'min-width'>;min-inline-size sets a minimum along the element’s inline axis: with writing-mode: horizontal-tb it corresponds to min-width; with vertical-rl or vertical-lr, to min-height. It is not inherited and applies to elements that accept width or height.
Its syntax refers to min-width values, including auto, nonnegative lengths and percentages, and min-content and max-content. Percentages depend on the corresponding dimension of the containing block. For length values, box-sizing determines whether the constraint targets the content box or border box.
inline-size specifies a preferred size, not an absolute limit: the minimum can enlarge it. In the example, 40px is raised to 120px; changing the writing mode switches the constrained axis without changing the declaration.
Note a specification discrepancy: the CSS Logical Properties table lists an initial value of 0, whereas CSS Sizing Level 3 defines auto. The automatic minimum usually yields zero unless the layout module specifies otherwise; do not unconditionally equate auto with 0.
Examples
<!doctype html>
<meta charset="utf-8">
<title>min-inline-size</title>
<style>
.box {
box-sizing: border-box;
inline-size: 40px;
min-inline-size: 120px;
block-size: 30px;
padding: 0;
border: 0;
background: teal;
}
#horizontal { writing-mode: horizontal-tb; }
#vertical { writing-mode: vertical-rl; }
</style>
<div id="horizontal" class="box"></div>
<div id="vertical" class="box"></div>
<pre id="result"></pre>
<script>
const lines = ['horizontal', 'vertical'].map(id => {
const rect = document.getElementById(id).getBoundingClientRect();
return `${id}: ${rect.width} x ${rect.height}`;
});
document.getElementById('result').textContent = lines.join('\n');
</script>Result
horizontal: 120 x 30 vertical: 30 x 120
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.