Skip to main content

Module geometry

Module geometry 

Source
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§

EdgeSizes
Represents the four edges of a box for properties like margin, padding, border.
IntrinsicSizes
Represents the intrinsic sizing information for an element, calculated without knowledge of the final containing block size.
MarginAuto
Tracks which margins are set to auto (for centering calculations).
PackedBoxProps
Packed representation of box model properties using i16×10 encoding.
PositionedRectangle
ResolutionParams
Parameters needed to resolve CSS values to pixels.
ResolvedBoxProps
A fully resolved representation of a node’s box model properties.
UnresolvedBoxProps
Box properties with unresolved CSS values.
UnresolvedEdge
Unresolved edge sizes for margin/padding/border.
WritingModeContext
Captures the resolved writing mode context for a node.

Enums§

LayoutClear
Represents a clear attribute
LayoutFloat
Represents a float attribute
UnresolvedMargin
An unresolved CSS margin value.

Type Aliases§

BoxProps
Type alias for backwards compatibility. TODO: Remove this once all code uses ResolvedBoxProps directly.