calc() as CSS unit value
- CRMethod of allowing calculated values for length units, i.e. width: calc(100% - 3em)
IE
- 5.5 - 8: Not supported
- 9: Partial support
- 10: Partial support
- 11: Partial support
Edge
- 12 - 87: Supported
- 88: Supported
Firefox
- 2 - 3.6: Not supported
- 4 - 15: Supported
- 16 - 84: Supported
- 85: Supported
- 86 - 87: Supported
Chrome
- 4 - 18: Not supported
- 19 - 25: Supported
- 26 - 87: Supported
- 88: Supported
- 89 - 91: Supported
Safari
- 3.1 - 5.1: Not supported
- 6: Supported
- 6.1 - 13.1: Supported
- 14: Supported
- TP: Supported
Opera
- 9 - 12.1: Not supported
- 15 - 72: Supported
- 73: Supported
iOS Safari
- 3.2 - 5.1: Not supported
- 6: Supported
- 7 - 13.7: Supported
- 14: Supported
Opera Mini
- all: Not supported
Android Browser
- 2.1 - 4.3: Not supported
- 4.4 - 4.4.4: Partial support
- 81: Supported
Opera Mobile
- 10 - 12.1: Not supported
- 59: Supported
Chrome for Android
- 88: Supported
Firefox for Android
- 85: Supported
UC Browser for Android
- 12.12: Supported
Samsung Internet
- 4 - 12.0: Supported
- 13.0: Supported
QQ Browser
- 10.4: Supported
Baidu Browser
- 7.12: Supported
KaiOS Browser
- 2.5: Supported
Support can be somewhat emulated in older versions of IE using the non-standard expression()
syntax.
Due to the way browsers handle sub-pixel rounding differently, layouts using calc()
expressions may have unexpected results.