scriptlevel
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
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.
Syntax
html
Values
If is an unsigned integer (i.e., with prefix sign symbol removed) then the accepted values are:
-
Sets the
math-depth
to value. This will set
font-size
of the element to the same value as the one of elements at the specified depth. +
-
Sets the
math-depth
to valueadd()
. This will scale downfont-size
on the elementtimes.
-
-
Sets the
math-depth
to valueadd(-)
. This will scale upfont-size
on the elementtimes.
Example
html
base
subscript
superscript
Specifications
Specification |
---|
MathML Core # dfn-scriptlevel |
Browser compatibility
See also
- All global attributes.
- The displaystyle global attribute.
font-size
math-depth
math-style