Menu Samaritan's Purse

MAX-BLOCK-SIZE

The max-block-size property corresponds to the max-height or the max-width depending on the element's writing-mode.

SYNTAX

CSS

max-block-size: value;

JS

object.style.maxBlockSize = "value";

VALUES

<'max-block-size'> = <'max-width'>
<'max-width'> = none | <length-percentage> | min-content | max-content | fit-content( <length-percentage> )
none

No limit on the size of the box.

<length-percentage> = [ <length> | <percentage> ]
<length>

Specifies the length using a number followed by a unit of measurement.

<percentage>

Specifies the percentage using a number followed by a percent sign (%).

min-content

Represents the largest min-content contribution of the items occupying the track.

max-content

Represents the largest max-content contribution of the items occupying the track.

fit-content()

Represents the formula max(minimum, min(limit, max-content)), where minimum represents an auto minimum (which is often, but not always, equal to a min-content minimum), and limit is the track sizing function passed as an argument to fit-content(). This is essentially calculated as the smaller of minmax(auto, max-content) and minmax(auto, limit).

INITIAL

none

EXAMPLES

FIT-CONTENT

LENGTH

MAX-CONTENT

MIN-CONTENT

NONE

PERCENTAGE

JS

INTERNAL

block-size

inline-size

max-inline-size

min-block-size

min-inline-size

EXTERNAL

World Wide Web Consortium (W3C)