<mphantom>
The MathML <mphantom>
element is rendered invisibly, but dimensions (such as height, width, and baseline position) are still kept.
Attributes
- class, id, style
-
Provided for use with stylesheets.
displaystyle
-
A Boolean value specifying whether more vertical space is used for displayed equations or, if set to
false
, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, whendisplaystyle
is set totrue
. See alsomovablelimits
on<mo>
. - mathbackground
-
The background color. You can use
#rgb
,#rrggbb
and HTML color names.
Examples
Sample rendering:
Rendering in your browser:
<math>
<mrow>
<mi> x </mi>
<mo> + </mo>
<mphantom>
<mi> y </mi>
<mo> + </mo>
</mphantom>
<mi> z </mi>
</mrow>
</math>
Specifications
Specification |
---|
MathML Core # making-sub-expressions-invisible-mphantom |
Browser compatibility
BCD tables only load in the browser