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§
- Containing
Block - 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.