We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

The MathML <mphantom> element is rendered invisibly, but dimensions (such as height, width, and baseline position) are still kept.


class, id, style
Provided for use with stylesheets.
The background color. You can use #rgb, #rrggbb and HTML color names.


Sample rendering: x+  z

Rendering in your browser: x + y + z


  <mi> x </mi>
  <mo> + </mo> 
    <mi> y </mi>
    <mo> + </mo>
  <mi> z </mi>



Specification Status Comment
MathML 3.0
The definition of 'mphantom' in that specification.
Recommendation Current specification
MathML 2.0
The definition of 'mphantom' in that specification.
Recommendation Initial specification

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support No support 1.0 (1.7 or earlier) No support No support 5.1
mathbackground No support 4.0 (2.0) No support No support 5.1
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support 1.0 (1.0) No support No support No support
mathbackground No support No support 4.0 (2.0) No support No support No support

See also

Document Tags and Contributors

 Contributors to this page: fscholz, fred.wang, Sheppy, teoli, jswisher
 Last updated by: fscholz,