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 value add(). This will scale down font-size on the element times.

-

Sets the math-depth to value add(-). This will scale up font-size on the element times.

Example

html


  
    
    base
    
    subscript
    
    superscript
  

Specifications

Specification
MathML Core
# dfn-scriptlevel

Browser compatibility

See also