Expand description
Box model geometry types and writing-mode support for the layout solver.
Provides edge-size types (EdgeSizes, ResolvedBoxProps, PackedBoxProps),
CSS value resolution (UnresolvedMargin, UnresolvedEdge, ResolutionParams),
intrinsic sizing (IntrinsicSizes), and writing-mode context (WritingModeContext).
Structs§
- Edge
Sizes - Represents the four edges of a box for properties like margin, padding, border.
- Intrinsic
Sizes - Represents the intrinsic sizing information for an element, calculated without knowledge of the final containing block size.
- Margin
Auto - Tracks which margins are set to
auto(for centering calculations). - Packed
BoxProps - Packed representation of box model properties using i16×10 encoding.
- Positioned
Rectangle - Resolution
Params - Parameters needed to resolve CSS values to pixels.
- Resolved
BoxProps - A fully resolved representation of a node’s box model properties.
- Unresolved
BoxProps - Box properties with unresolved CSS values.
- Unresolved
Edge - Unresolved edge sizes for margin/padding/border.
- Writing
Mode Context - Captures the resolved writing mode context for a node.
Enums§
- Layout
Clear - Represents a
clearattribute - Layout
Float - Represents a
floatattribute - Unresolved
Margin - An unresolved CSS margin value.
Type Aliases§
- BoxProps
- Type alias for backwards compatibility.
TODO: Remove this once all code uses
ResolvedBoxPropsdirectly.