calc-size()
Limited availability
The calc-size()
CSS function computes mathematical expressions that include height
and width
keyword values, for example calc-size(fit-content, size / 2)
. Not to be confused with the calc()
CSS function, which cannot use keyword values.
Learning resources on MDN
Browser support
- Chrome 129 Released on 2024-09-17
- Chrome Android 129 Released on 2024-09-17
- Edge 129 Released on 2024-09-19
- Firefox ❌ See bugzil.la/1896734 Vendor position
- Firefox for Android ❌ See bugzil.la/1896734 Vendor position
- Safari ❌ See webkit.org/b/274177 Vendor position
- Safari on iOS ❌ See webkit.org/b/274177 Vendor position