The block-size CSS property specifies the size of the block.
object.style.blockSize = "value";
<'block-size'> = <'width'>
<'width'> = auto | <length-percentage> | min-content | max-content | fit-content( <length-percentage> )
Automatically specified by the user agent.
<length-percentage> = [ <length> | <percentage> ]
Specifies the length using a number followed by a unit of measurement.
Specifies the percentage using a number followed by a percent sign (%).
Represents the largest min-content contribution of the items occupying the track.
Represents the largest max-content contribution of the items occupying the track.
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).
© 2021 Osbo Design