| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/MathML/Reference/Global_attributes/displaystyle | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since January 2023.
The displaystyle global attribute is a boolean setting the math-style of a MathML element.
In this example, an munder element is used to attach a script "A" to a base "". By default, the summation symbol is rendered with the font-size inherited from its parent and the A as a scaled down subscript. With the explicit displaystyle="true" attribute, the summation symbol is instead drawn bigger and the "A" becomes an underscript.
html,
body {
height: 100%;
}
body {
display: grid;
place-items: center;
font-size: 1.5rem;
}
<math>
<munder>
<mo></mo>
<mi>A</mi>
</munder>
<munder displaystyle="true">
<mo></mo>
<mi>A</mi>
</munder>
</math>
<math displaystyle="true">
<math displaystyle="false">
| Specification |
|---|
| MathML Core # dfn-displaystyle |
font-sizemath-depthmath-styleThis page was last modified on Oct 30, 2025 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |