Expand description
Paged media layout engine.
This module provides infrastructure for multi-page document layout with CSS Paged Media support.
The core concept is a FragmentationContext, which represents a series of containers (fragmentainers) that content flows into during layout. For continuous media (screens), we use a single infinite container. For paged media (print), we use a series of page-sized containers.
This approach allows the layout engine to make break decisions
during layout, respecting CSS properties like break-before,
break-after, and break-inside.
Structs§
- Fragmentainer
- A single container (fragmentainer) in a fragmentation context.
- Fragmentation
State - State tracked during layout for fragmentation. This is created at the start of paged layout and updated as nodes are laid out.
- Layout
Box - Placeholder for layout box content (to be implemented in later phases)
Enums§
- Fragmentation
Context - Represents a series of containers that content flows into during layout.