MathML の属性値

MathML 固有の型

CSS データ型に加え、一部の MathML 属性は以下の型を受け入れます。

  • <unsigned-integer>: <integer> で、最初の文字が U+002D HYPHEN-MINUS character (-) でも U+002B PLUS SIGN (+) でもないものです。例えば 1234 です。
  • <boolean>: true または false の文字列で、論理値を表します。

MathML における古い長さ

非推奨;: この機能は非推奨になりました。まだ対応しているブラウザーがあるかもしれませんが、すでに関連するウェブ標準から削除されているか、削除の手続き中であるか、互換性のためだけに残されている可能性があります。使用を避け、できれば既存のコードは更新してください。このページの下部にある互換性一覧表を見て判断してください。この機能は突然動作しなくなる可能性があることに注意してください。

<length-percentage> の代わりに、 MathML は独自の長さを記述するための型を定義していました。受け入れられる値には、単位のないゼロ以外の長さの値(例えば、 500% を意味する 5)、ドットで終わる数字を含む値(例えば、 34.px)、名前付きの空間(例えば、 thinmathspace)が含まれていました。互換性のために、等価な <percentage> 値でゼロでない単位なしの長さの値を置き換えること、数字で不要なドットを削除すること、名前付きの長さには以下の置き換えを使用することが推奨されています。

veryverythinmathspace  => 0.05555555555555555em
verythinmathspace      => 0.1111111111111111em
thinmathspace          => 0.16666666666666666em
mediummathspace        => 0.2222222222222222em
thickmathspace         => 0.2777777777777778em
verythickmathspace     => 0.3333333333333333em
veryverythickmathspace => 0.3888888888888889em

単位

単位 説明
em Font-relative 単位
ex Font-relative 単位(その要素の "x" 高、多くのフォントでは 1ex ≈ 0.5em
px ピクセル
in インチ(1 インチ = 2.54 センチメートル)
cm センチメートル
mm ミリメートル
pt ポイント (1 point = 1/72 inch)
pc パイカ (1 pica = 12 points)
% 既定値のパーセント値

定数

定数
veryverythinmathspace 1/18 em
verythinmathspace 2/18 em
thinmathspace 3/18 em
mediummathspace 4/18 em
thickmathspace 5/18 em
verythickmathspace 6/18 em
veryverythickmathspace 7/18 em
negativeveryverythinmathspace -1/18 em
negativeverythinmathspace -2/18 em
negativethinmathspace -3/18 em
negativemediummathspace -4/18 em
negativethickmathspace -5/18 em
negativeverythickmathspace -6/18 em
negativeveryverythickmathspace -7/18 em

ブラウザーの互換性

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
Named spaces (e.g. thinmathspace to mean 3/18em)
Non-standard
Nonzero unitless values (e.g. 5 to mean 500% the default thickness)
Non-standard

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.