Skip to main content

Module positioning

Module positioning 

Source
Expand description

CSS Positioning Scheme Engine (Relative, Absolute, Fixed, Sticky).

Implements W3C CSS 2.1 Section 10.1 (Containing Block), Section 10.3.7 & 10.6.4 (Absolute Positioning Equations, Double-Anchored Inset Stretching, Auto-Margin Centering), and CSS Positioned Layout Level 3 Section 6 (Sticky Constraints).

Structs§

ContainingBlock
Active containing block context propagated down the layout hierarchy.

Functions§

solve_out_of_flow_box
Solves out-of-flow geometry for an absolute or fixed element according to W3C CSS 2.1 §10.3.7 & §10.6.4.
solve_out_of_flow_box_guarded
Solves out-of-flow geometry with an active depth guard.
solve_positioning
Resolves out-of-flow and relative positioning offsets for a container’s children and recursively propagates containing blocks down through all descendants.
solve_positioning_children
Recursively traverses child nodes, resolving positioning and propagating the containing block.
solve_positioning_children_guarded
Recursively traverses child nodes with an active depth guard to prevent stack overflow.
solve_positioning_guarded
Resolves positioning with an active depth guard to prevent call-stack exhaustion.