Function taffy::compute::common::alignment::apply_alignment_fallback

source ยท
pub(crate) fn apply_alignment_fallback(
    free_space: f32,
    num_items: usize,
    alignment_mode: AlignContent,
    is_safe: bool,
) -> AlignContent
Expand description

Implement fallback alignment.

In addition to the spec at https://www.w3.org/TR/css-align-3/ this implementation follows the resolution of https://github.com/w3c/csswg-drafts/issues/10154