Expand description
CSS 2.1 Section 8.3.1 Box Model and Vertical Margin Collapsing Engine.
Functions§
- clamp_
dimension - Clamps a computed size against
minandmaxconstraints. - clamp_
dimension_ with_ node - Clamps a computed size against
minandmaxconstraints with node context. - clear_
inline_ descendant_ line_ boxes - Recursively clears line boxes from inline phrasing descendants whose text is absorbed by parent IFC using an iterative heap stack.
- collapse_
margins - Collapses two adjacent vertical margins according to CSS 2.1 §8.3.1.
- inline_
style_ from_ computed_ style - Converts a ComputedStyle into an InlineTextStyle for inline text shaping and typography.
- is_
empty_ collapsible_ block - Returns true if an in-flow block element has zero computed height, no padding or border, and no in-flow content, allowing its top and bottom margins to collapse through under CSS 2.1 §8.3.1.
- is_
inline_ phrasing_ node - Returns whether a child layout node is an inline phrasing element.
- node_
establishes_ bfc - Returns true if an element establishes an independent formatting context (BFC, FFC, GFC), preventing margin collapsing across its boundaries under W3C CSS 2.1 §8.3.1 and CSS Display Level 3.
- refresh_
inline_ fragment_ styles - Refreshes inline fragment paint styles after a style-only change.
- resolve_
dimension - Resolves a CSS
Dimensioninto concrete pixels relative to an available length. - resolve_
dimension_ with_ node - Resolves a CSS
Dimensioninto concrete pixels relative to an available length and node context, evaluating intrinsic keywords (min-content,max-content,fit-content) viacompute_min_max_sizes. - solve_
block - Executes normal-flow block layout with vertical margin collapsing.
- solve_
block_ children - Positions in-flow block children vertically with CSS 2.1 §8.3.1 margin collapsing, IFC, and floats.
- solve_
block_ children_ with_ exclusions - Positions in-flow block children with active exclusion space tracking and float dispatch.
- solve_
block_ children_ with_ exclusions_ guarded - solve_
block_ with_ exclusions - Executes normal-flow block layout passing parent exclusion space for float obstructions.
- solve_
block_ with_ exclusions_ guarded - Executes normal-flow block layout with an active depth guard to prevent stack overflow.
- translate_
node_ and_ descendants - Recursively translates layout geometry and line box fragments of a node and its descendants.