pub fn shrink_to_fit_width(
ctx: &LayoutContext<'_>,
node: NodeId,
available_width: f32,
) -> f32Expand description
Compute shrink-to-fit width for a block (CSS 2.1 §10.3.5). Used for floats, inline-blocks, absolutely positioned elements, etc.