Skip to main content

Module paged

Module paged 

Source
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.
FragmentationState
State tracked during layout for fragmentation. This is created at the start of paged layout and updated as nodes are laid out.
LayoutBox
Placeholder for layout box content (to be implemented in later phases)

Enums§

FragmentationContext
Represents a series of containers that content flows into during layout.