HTML5 MathML
HTML5 MathML movablelimits Attribute
The movablelimits attribute on <mo> determines whether an operator's limits are placed above and below it or beside it, depending on whether the formula is in display or inline style.
Definition and usage
The movablelimits attribute takes true or false. When true, an operator's scripts (such as summation limits) render above and below it in display style, but move to the side in inline style to save vertical space. Operators like the summation sign have movablelimits set to true by default.
Which elements use it
- <mo> - controls whether attached limits move between the over/under and sub/sup positions.
Example
<math display="block">
<munderover>
<mo movablelimits="true">∑</mo>
<mrow><mi>k</mi><mo>=</mo><mn>0</mn></mrow>
<mi>n</mi>
</munderover>
</math>In display style the limits k=0 and n sit below and above the summation sign; in inline style they would move to subscript and superscript positions.
The movablelimits attribute is part of MathML Core and is supported by modern browsers.
