property

Block step round — CSS reference

Experimental draft: Selects whether snapping increases, decreases or minimizes the absolute change in outer size; the draft chooses an increase on ties. For known sizes round() illustrates numeric strategies; rounding downward can clip content if used carelessly.

Formal Syntax & Structure

css syntaxcss
block-step-round: up;

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>block-step-round</title><style>body{margin:0;background:white}#a{box-sizing:border-box}#a{block-size:round(up,55px,24px);block-step-round:up}#b{block-size:round(down,55px,24px)}</style><body><div id="a" style="background:#ccddee">Known size</div><div id="b"></div></body></html>
CSS Reference