Path: blob/main/files/en-us/web/mathml/global_attributes/scriptlevel/index.md
6520 views
------{{QuickLinksWithSubPages("/en-us/docs/Web/MathML/Global_attributes")}}
The scriptlevel global attribute sets the math-depth of a MathML element. It allows overriding rules from the user agent stylesheet that define automatic calculation of font-size within MathML formulas.
Example
Syntax
Values
If <U> is an unsigned integer (i.e. with prefix sign symbol removed) then the accepted values are:
<U>: Sets the
math-depthto value<U>. This will setfont-sizeof the element to the same value as the one of elements at the specified depth.
+<U>: Sets the
math-depthto valueadd(<U>). This will scale downfont-sizeon the element<U>times.
-<U>: Sets the
math-depthto valueadd(-<U>). This will scale upfont-sizeon the element<U>times.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
All global attributes.
The displaystyle global attribute.
{{cssxref("font-size")}}
{{cssxref("math-depth")}}
{{cssxref("math-style")}}