Skip to main content

Module block

Module block 

Source
Expand description

Block formatting context layout.

Implements CSS 2.1 §9.4.1 — Block Formatting Contexts and CSS 2.1 §10.3.3 — Block-level non-replaced elements in normal flow.

Functions§

layout_block
Layout a block-level element and its children.
shrink_to_fit_width
Compute shrink-to-fit width for a block (CSS 2.1 §10.3.5). Used for floats, inline-blocks, absolutely positioned elements, etc.