HTML5 MathML
HTML5 MathML scriptsizemultiplier Attribute
The scriptsizemultiplier attribute sets the factor by which text shrinks at each successive script level - such as a superscript on a superscript. It is set on <mstyle>.
Definition and usage
The scriptsizemultiplier attribute is a number (default around 0.71) that determines how much smaller each nested script level is drawn compared with its parent. Lowering it makes deeply nested scripts shrink faster; raising it keeps them closer in size.
Which elements use it
- <mstyle> - sets the multiplier for its descendant script levels.
Example
<math>
<mstyle scriptsizemultiplier="0.6">
<msup>
<mi>a</mi>
<msup><mi>b</mi><mi>c</mi></msup>
</msup>
</mstyle>
</math>With scriptsizemultiplier="0.6", the exponent b shrinks to 60% and its own exponent c shrinks a further 60%, giving a steeper reduction than the default.
The scriptsizemultiplier attribute is not part of MathML Core and support is limited; the corresponding CSS math-depth mechanism is the modern approach.
