Back to Interop 2027 proposals

CSS `interpolate-size` and `calc-size()`

Proposed by web-platform-tests/interop#1373
Participate in this proposal on GitHub

Direct 1-click actions are temporarily unavailable for Interop proposals pending repository app approval. Cast your vote by adding a +1 reaction or join the discussion directly on GitHub.

Open issue on GitHub

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. A common use case is to transition between height: 0 and height: auto, for example in accordion components.

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

Closely related is the new calc-size() function, which allows you to perform calculations on intrinsic size values (not supported by the regular calc() function).

.foo {
  width: calc-size(min-content, size + 100px);
}

These features are supported in Chrome v129.

References:

Discussion on GitHub (0)

No comments on GitHub yet

Be the first developer to share technical feedback or use cases on this Interop proposal.

Join discussion on GitHub