Skip to main content

Module sizing

Module sizing 

Source
Expand description

solver3/sizing.rs

Pass 2: Sizing calculations (intrinsic and used sizes)

Functionsยง

calculate_intrinsic_sizes
Phase 2a: Calculate intrinsic sizes (bottom-up pass)
calculate_used_size_for_node
Calculates the used size of a single node based on its CSS properties and the available space provided by its containing block.
collect_inline_content
extract_text_from_node
resolve_percentage_with_box_model
Resolves a percentage value against an available size, accounting for the CSS box model.