math-style
Widely availableSince 202396% of users
Specifies whether MathML equations should be rendered in a 'display' style (centered and full-sized) or an 'inline' style (more compact to fit inside a paragraph).
What's modern
From web-features, MDN's browser data and our snippets, checked dailyModernIn every major browser since August 2023. Widely available since February 2026.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- Yes
- Applies to
- all elements
- Animation type
- notAnimatable
Quick example
math {
/* Ensures the math formula is rendered in a compact, inline style */
math-style: compact;
}Values
normalcompactmath-style browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.Safe to use without fallbacks.
Usage96%of people can use this4% use a browser without it.
Browsers
109+
117+
14.1+
109+Mobile
109+Android
117+Android
14.5+iOS