Repository navigation
Description
Description
dbaron's description from - WebKit/standards-positions#348
"Animation to or from auto heights is commonly requested by web developers. It is important for animation of elements (such as the contents of disclosure widgets) opening/closing between a content-based height (or width) and a small (often zero) height (or width). This calc-size() proposal fits the desire to do such animations into the way that CSS transitions and animations work. More generally, this allows animating between a fixed length and almost any type of height (or width, or min/max-height/width) that can currently be specified in CSS.
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., in the cases where we can animate those keywords.
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. This function is used to represent the values in the middle of the animations allowed by the interpolate-size property."
Specification
Additional Signals
Just added to Chrome stable as of 129. Chrome blog post:
https://developer.chrome.com/docs/css-ui/animate-to-height-auto
Mozilla Standard Position:
mozilla/standards-positions#1022
Webkit Standard Position:
WebKit/standards-positions#348
Web Platform Test:
https://wpt.fyi/results/css/css-values/calc-size?label=master&label=experimental&aligned&q=calc-size
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]CSS `calc-size()` and `interpolate-size`[/-][+]CSS `calc-size()` and `interpolate-size` (transition 0 to auto)[/+]wpt-interop commentedon Feb 13, 2025
Thank you for proposing CSS
calc-size()andinterpolate-size(transition 0 to auto) for inclusion in Interop 2025.We wanted to let you know that this proposal was not selected to be part of Interop this year.
On behalf of the entire Interop team, thank you for submitting this proposal 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.
For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2025.
Posted on behalf of the Interop team.