Skip to main content

Module style

Module style 

Source
Expand description

§Style System

A CSS-like style model for document nodes. This is intentionally a subset of CSS that covers the properties needed for document layout: flexbox, box model, typography, color, borders.

We don’t try to implement all of CSS. We implement the parts that matter for PDF documents, and we implement them correctly.

Structs§

Color
An RGBA color.
CornerValues
Values for each corner (top-left, top-right, bottom-right, bottom-left).
EdgeValues
Values for each edge (top, right, bottom, left).
GridPlacement
Grid item placement.
ResolvedStyle
Resolved style: all values are concrete (no Option, no Auto for computed values). This is what the layout engine works with after style resolution.
Style
The complete set of style properties for a node.

Enums§

AlignContent
AlignItems
Dimension
A dimension that can be points, percentage, or auto.
Direction
Text direction for BiDi support.
Display
Layout display mode.
FlexDirection
FlexWrap
FontStyle
GridTrackSize
A single grid track size definition.
Hyphens
CSS hyphens property controlling word hyphenation.
JustifyContent
LineBreaking
Line breaking algorithm.
Overflow
Overflow behavior for container elements.
SizeConstraint
TextAlign
TextDecoration
TextOverflow
Text overflow behavior when text exceeds available width.
TextTransform