max-block-size
A logical property that sets the maximum size of an element in the block axis (usually 'height'). It's the logical replacement for 'max-height'.
It is documented as part of the CSS Logical Properties and Values specification.
Syntax
/* Usage Example */
.side-panel {
/* Prevents the panel from growing taller than 80vh logically */
max-block-size: 80vh;
overflow: auto;
}
/* Syntax */
max-block-size: max-width;
/* Global values */
max-block-size: inherit;
max-block-size: initial;
max-block-size: revert;
max-block-size: revert-layer;
max-block-size: unset;
max-block-size Browser support
Widely available
Since
2021 95% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.
57+
41+
12.1+
79+