Revision 384781 of Values

  • Revision slug: Web/MathML/Attribute/Values
  • Revision title: Values
  • Revision id: 384781
  • Created:
  • Creator: Sheppy
  • Is current revision? Yes
  • Comment bug 673759; 26 words added, 4 words removedMathML/Attributes/Values Web/MathML/Attribute/Values

Revision Content

Lengths

Several MathML presentation elements have attributes that accept length values used for size or spacing. MathML accepts different units and constants for specifying lengths.

Units

Unit Description
em {{ Cssxref("font-size", "Font-relative") }} unit
ex {{ Cssxref("font-size", "Font-relative") }} unit. (The "x"-height of the element, 1ex ≈ 0.5em in many fonts)
px Pixels
in Inches (1 inch = 2.54 centimeters)
cm Centimeters
mm Millimeters
pt Points (1 point = 1/72 inch)
pc Picas (1 pica = 12 points)
% Percentage of the default value.

Constants

Constant Value
veryverythinmathspace 1/18em
verythinmathspace 2/18em
thinmathspace 3/18em
mediummathspace 4/18em
thickmathspace 5/18em
verythickmathspace 6/18em
veryverythickmathspace 7/18em
Negative contstants are introduced in Gecko 7.0 {{ geckoRelease("7.0") }} ({{ bug(650530) }})
negativeveryverythinmathspace -1/18em
negativeverythinmathspace -2/18em
negativethinmathspace -3/18em
negativemediummathspace -4/18em
negativethickmathspace -5/18em
negativeverythickmathspace -6/18em
negativeveryverythickmathspace -7/18em

Note: Namedspace binding is deprecated in MathML3 and has been removed in Gecko 15.0 {{ geckoRelease("15.0") }} (bug 673759).

Revision Source

<h2 id="Lengths">Lengths</h2>
<p>Several MathML presentation elements have attributes that accept length values used for size or spacing. MathML accepts different units and constants for specifying lengths.</p>
<h3 id="Units">Units</h3>
<table class="standard-table"> <thead> <tr> <th>Unit</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code>em</code></td> <td>{{ Cssxref("font-size", "Font-relative") }} unit</td> </tr> <tr> <td><code>ex</code></td> <td>{{ Cssxref("font-size", "Font-relative") }} unit. (The "x"-height of the element, <code>1ex ≈ 0.5em</code> in many fonts)</td> </tr> <tr> <td><code>px</code></td> <td>Pixels</td> </tr> <tr> <td><code>in</code></td> <td>Inches (1 inch = 2.54 centimeters)</td> </tr> <tr> <td><code>cm</code></td> <td>Centimeters</td> </tr> <tr> <td><code>mm</code></td> <td>Millimeters</td> </tr> <tr> <td><code>pt</code></td> <td>Points (1 point = 1/72 inch)</td> </tr> <tr> <td><code>pc</code></td> <td>Picas (1 pica = 12 points)</td> </tr> <tr> <td><code>%</code></td> <td>Percentage of the default value.</td> </tr> </tbody>
</table>
<h3 id="Constants">Constants</h3>
<table class="standard-table"> <thead> <tr> <th>Constant</th> <th>Value</th> </tr> </thead> <tbody> <tr> <td><code>veryverythinmathspace</code></td> <td>1/18<code>em</code></td> </tr> <tr> <td><code>verythinmathspace</code></td> <td>2/18<code>em</code></td> </tr> <tr> <td><code>thinmathspace</code></td> <td>3/18<code>em</code></td> </tr> <tr> <td><code>mediummathspace</code></td> <td>4/18<code>em</code></td> </tr> <tr> <td><code>thickmathspace</code></td> <td>5/18<code>em</code></td> </tr> <tr> <td><code>verythickmathspace</code></td> <td>6/18<code>em</code></td> </tr> <tr> <td><code>veryverythickmathspace</code></td> <td>7/18<code>em</code></td> </tr> </tbody> <thead> <tr> <th colspan="2">Negative <em>contstants</em> are introduced in Gecko 7.0 {{ geckoRelease("7.0") }} ({{ bug(650530) }})</th> </tr> </thead> <tbody> <tr> <td><code>negativeveryverythinmathspace</code></td> <td>-1/18<code>em</code></td> </tr> <tr> <td><code>negativeverythinmathspace</code></td> <td>-2/18<code>em</code></td> </tr> <tr> <td><code>negativethinmathspace</code></td> <td>-3/18<code>em</code></td> </tr> <tr> <td><code>negativemediummathspace</code></td> <td>-4/18<code>em</code></td> </tr> <tr> <td><code>negativethickmathspace</code></td> <td>-5/18<code>em</code></td> </tr> <tr> <td><code>negativeverythickmathspace</code></td> <td>-6/18<code>em</code></td> </tr> <tr> <td><code>negativeveryverythickmathspace</code></td> <td>-7/18<code>em</code></td> </tr> </tbody>
</table>
<p>Note: <a class="external" href="http://www.w3.org/TR/MathML3/chapter3.html#id.3.3.4.2.1" rel="external" title="http://www.w3.org/TR/MathML3/chapter3.html#id.3.3.4.2.1">Namedspace binding is deprecated</a> in MathML3 and has been removed in Gecko 15.0 {{ geckoRelease("15.0") }} (<a class="external" href="https://bugzilla.mozilla.org/show_bug.cgi?id=673759" rel="external">bug 673759</a>).</p>
Revert to this revision