Last modified 11 days ago Last modified on 07/15/16 09:11:16

MathML Project


There is now basic support for MathML's presentation markup in WebKit. The native rendering partially supports the follow elements:

  • math
  • mrow and mfenced
  • mo with operator stretching
  • mi, mn, mphantom, and mtext
  • msub, msup, and msubsup
  • mover, munder, and munderover
  • mtable, mtr, mtd
  • mfrac, mroot and msqrt
  • merror and mstyle

There are a number of patches relating to further MathML support that can be viewed via the master bug for MathML. Other bugs can be queried using the "MathML" component in the bug database.


The user agent stylesheet for MathML is configured to use a default list of math fonts. Port/OS maintainers and users should consider them to get the best rendering of mathematical formulae.


MathML support is turned on at compile time by the ENABLE_MATHML definition. This can be toggled by the "mathml" toggle. By default, MathML is enabled. You do not need to do anything to turn MathML on.

To turn MathML off, use:

   build-webkit --no-mathml