Back to Content

Index

files/en-us/web/mathml/reference/element/mphantom/index.md

latest883 B
Original Source

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

Attributes

This element accepts the global MathML attributes.

Examples

html
<math display="block">
  <mrow>
    <mi>x</mi>
    <mo>+</mo>
    <mphantom>
      <mi>y</mi>
      <mo>+</mo>
    </mphantom>
    <mi>z</mi>
  </mrow>
</math>

{{EmbedLiveSample('Examples')}}

Technical summary

<table class="properties"> <tr> <th scope="row"> <a href="/en-US/docs/Web/Accessibility/ARIA/Reference/Roles">Implicit ARIA role</a> </th> <td> None </td> </tr> </table>

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{ MathMLElement("mspace") }}
  • {{ MathMLElement("mpadded") }}