pub(crate) fn apply_alignment_fallback(
free_space: f32,
num_items: usize,
alignment_mode: AlignContent,
) -> AlignContentKeywordExpand description
Resolve any spec-defined fallbacks for the given AlignContent value, returning the
bare position keyword the alignment math should use.
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.
normal behaves differently in each layout mode, so callers must resolve
AlignContentKeyword::Normal to the keyword it behaves as before calling this function
(if it is not resolved then it is treated as stretch).