#3595·MathJax

Displaystyle="true" does not apply to all elements within an mrow

Author: samimaattaCeliaCreated Jul 28, 2026Updated Jul 28, 2026
LabelsExpected BehaviorCode Examplev4

Issue Summary

When mrow is given the attribute displaystyle="true" it should apply to all elements within said mrow. This does not happen with MathJax.

Both of the summation expressions are nested inside an mrow element with the attribute displaystyle="true". Visually both of them should appear as uppercase symbols (as if they were block equations), where the numbers 5 and 6 should be under them, not as subscripts.

MathJax 4 output:

Summation signs appearing lower case with subscripts.

Firefox's native output:

Correct output of uppercase summation and under, rather than sub.

OS: Windows 11 Browser: Mozilla Firefox 153.0

Steps to Reproduce:

Use the code to render:

xml
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow displaystyle="true">
  <munder>
    <mo></mo>
    <mn>5</mn>
  </munder>
  <munder>
    <mo></mo>
    <mn>6</mn>
  </munder>
  </mrow>
</math>

Technical details:

  • MathJax Version: 4
  • OS: Windows 11
  • Browser: Mozilla Firefox 153.0

I am using the default MathJax configuration and loading MathJax via

xml
<script src="https://cdn.jsdelivr.net/npm/mathjax@4/tex-mml-chtml.js" defer></script>