<calc-size>
Limited availability72% of usersExperimental
An experimental function that allows performing math on 'intrinsic' sizes like 'auto', 'min-content' or 'fit-content'. This is a key part of making it possible to animate from 'height: 0' to 'height: auto'.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Firefox or Safari yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick example
.accordion-content {
/* Experimental: allows math on 'auto' height */
height: calc-size(auto, size);
transition: height 0.3s ease;
}<calc-size> browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage72%of people can use this28% use a browser without it.
Browsers
129+
129+Mobile
129+Android
Interop 2027 candidate. Tracked for Interop 2027. Official focus areas publish early 2027; proposals are open through September 2026. See Interop 2027 →