Skip to main content

skippable_for_block_percentage_quirk

Function skippable_for_block_percentage_quirk 

Source
fn skippable_for_block_percentage_quirk(
    layout_context: &LayoutContext<'_>,
    base: &LayoutBoxBase,
    context: Option<&IndependentFormattingContext>,
) -> bool
Expand description

Whether a box may be skipped (deferring to its containing block) when resolving percentages in the block size of a descendant. This is known as “The percentage height calculation quirk”. Note that even if returning true, it won’t be skipped if it has a definite size. https://quirks.spec.whatwg.org/#the-percentage-height-calculation-quirk