Expand description
Layout. Performs layout on the DOM, builds display lists and sends them to be painted.
Re-exportsΒ§
pub use flow::BoxTree;
ModulesΒ§
- cell π
- construct_
modern πLayout construction code that is shared between modern layout modes (Flexbox and CSS Grid) - dom_
traversal π - flexbox π
- Flow layout, also known as block-and-inline layout.
- formatting_
contexts π - fragment_
tree π - layout_
box_ πbase - layout_
impl π - lists π
- positioned π
- Utilities for querying the layout, as needed by layout.
- quotes π
- replaced π
- sizing π
- style_
ext π - HTML Tables (β―Β°β‘Β°)β―οΈ΅ β»ββ»
- taffy π
StructsΒ§
- Constraint
Space πRepresents the set of constraints that we use when computing the min-content and max-content inline sizes of an element. - Containing
Block π - Containing
Block πSize - A variant of
ContainingBlock
that allows an indefinite inline size. Useful for code that is shared for both layout (where we know the inline size of the containing block) and intrinsic sizing (where we donβt know it). - Data that is propagated from ancestors to descendants during
crate::flow::BoxTree
construction. This allows data to flow in the reverse direction of the typical layout propoagation, but only duringBoxTree
construction.
Type AliasesΒ§
- Shared
Style πAt times, a style is βownedβ by more than one layout object. For example, text fragments need a handle on their parent inline boxβs style. In order to make incremental layout easier to implement, another layer of shared ownership is added viaSharedStyle
. This allows updating the style in originating layout object and having all βdepdendentβ objects update automatically.