1. Simple Keyword Interpolation

This uses interpolate-size: allow-keywords on :root to enable smooth transitions from 0 to auto without any calculations.

This simple animation doesn't need calc-size() because it doesn't modify the intrinsic auto height.

2. Constrained Dynamic Tag

This tag uses calc-size(fit-content, ...) to maintain a minimum presence while adding extra padding as it grows.

New Tag

3. Accordion with "Breathing Room"

Uses calc-size(auto, size + 2rem) to animate to a height that includes dynamic extra padding.

This content animates to its auto height plus an additional 2rem of calculated space. This ensures that no matter how much text is here, the "breathing room" remains consistent.

4. Proportional Content Sizing

Uses calc-size(max-content, size * 1.25) to ensure the container is always 25% larger than its longest line of text.

Proportional Box