mathsize
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
The mathsize
global attribute sets the font-size of a MathML element.
Note:
Use CSS for styling MathML whenever possible. The mathsize
attribute should only be included for applications that are not CSS-aware and will be overridden by the CSS font-size
property, if set.
Syntax
<!-- <length> values -->
<math mathsize="12px">
<math mathsize="0.8em">
<!-- <percentage> values -->
<math mathsize="80%">
Values
<length>
-
A positive
<length>
value. For most font-relative units (such asem
andex
), the font size is relative to the parent element's font size. <percentage>
-
A positive
<percentage>
value, relative to the parent element's font size.
Note: Some browsers may also accept legacy MathML lengths.
Specifications
Specification |
---|
MathML Core # dfn-mathsize |
Browser compatibility
BCD tables only load in the browser