Skip to content

CSS calc-size() and interpolate-size #1008

Closed

Description

@o-t-w

Description

Enables animating to height: auto; and other intrinsic sizing keywords in CSS.

:root {
    interpolate-size: allow-keywords; 
}

The CSS interpolate-size property allows a page to opt in to animations and transitions of CSS intrinsic sizing keywords such as auto, min-content, fit-content, etc.

Particularly useful for animating between height: 0 and a content-based height e.g. for a details/summary accordion animation.

The CSS calc-size() function is a CSS function similar to calc(), but that also supports operations on exactly one of the values auto, min-content, max-content, fit-content, stretch, or contain, which are the intrinsic sizing keywords.

Chrome blog post.

Available in Chrome/Edge as of 129.

Specification

https://www.w3.org/TR/css-values-5/#calc-size

web-feature

https://web-platform-dx.github.io/web-features-explorer/features/calc-size/
https://web-platform-dx.github.io/web-features-explorer/features/interpolate-size/

Test Links

https://wpt.fyi/results/css/css-values/calc-size?label=master&label=experimental&aligned&q=calc-size

Additional Signals

Mozilla Standard Position

Webkit Standard Position

Activity

  1. added
    focus-area-proposal
    on Sep 4, 2025
  2. github-actions commented on Sep 4, 2025

    @github-actions

    This comment was automatically generated based on the information you provided. Please don't edit it.

    Below is additional information about the web features (from the web-features project) which are referenced in your proposal.
    If this doesn't accurately correspond to your proposal, please update your initial comment to include web-features: <feature-id>.
    To find feature IDs, use the web-features explorer.

    calc-size()

    Feature calc-size()

    interpolate-size

    Feature interpolate-size

  3. foolip commented on Sep 5, 2025

    @foolip
    Member

    @o-t-w thank you for submitting this proposal! I just added https://web-platform-dx.github.io/web-features-explorer/features/calc-size/ to your description to help our bot (above) link to all the relevant information.

    Since there are two features, a wpt.fyi link covering both looks like this:
    https://wpt.fyi/results/?label=master&label=experimental&aligned&q=feature%3Acalc-size%20or%20feature%3Ainterpolate-size

    (This looks very similar to the link you already provided.)

  4. changed the title [-]CSS calc-size() and interpolate-size[/-] [+]CSS `calc-size()` and `interpolate-size`[/+] on Sep 6, 2025
  5. wpt-interop commented on Feb 12, 2026

    @wpt-interop
    Collaborator

    Thank you for proposing CSS calc-size() and interpolate-size for Interop 2026.

    We want to let you know it was not selected to be part of Interop this year.

    On behalf of the entire Interop team, thank you for submitting it for consideration. We got many more proposals than we could include in this year's project, necessitating some difficult choices. Please note this should not be taken as a comment on the technology as a whole, or our willingness to consider it for Interop in the future. We appreciate the work you put into your proposal, and would welcome your participation in future rounds of Interop.

    Posted on behalf of the Interop team.

  6. benface commented on Feb 12, 2026

    @benface

    That one is a huge bummer for sure... oh well, there's always next year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    focus-area-proposal

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions