<mspace>

Baseline 2023
Newly available

Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

<mspace>MathML の要素で、空白を作るために使われます。空白のサイズは属性で指定します。

属性

この要素の属性は、グローバル MathML 属性と共に以下の属性があります。

depth

<length-percentage> で、この空間の希望する(ベースライン以下の)空間を示します。

height

<length-percentage> で、この空間の希望する(ベースラインの上の)高さを示します。

width

<length-percentage> で、この空間の希望の幅を示します。

メモ: depthheightwidth 属性については、一部のブラウザーは古い MathML における長さも受け入れることがあります。

html
<math display="block">
  <mn>1</mn>
  <mspace
    depth="40px"
    height="20px"
    width="100px"
    style="background: lightblue;" />
  <mn>2</mn>
</math>

仕様書

Specification
MathML Core
# space-mspace

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
mspace
depth
height
Named spaces (e.g. thinmathspace to mean 3/18em) for width, height and depth attributes
DeprecatedNon-standard
width

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Non-standard. Check cross-browser support before using.
Deprecated. Not for use in new websites.
See implementation notes.

関連情報