Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. MathML
  3. Reference
  4. Values

MathML attribute values

MathML-specific types

In addition toCSS data types, some MathML attributes accept the following types:

  • <unsigned-integer>: An<integer>, whose first character is neither U+002D HYPHEN-MINUS character (-) nor U+002B PLUS SIGN (+); for example1234.
  • <boolean>: A stringtrue orfalse representing a boolean value.

Legacy MathML lengths

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see thecompatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

Instead of<length-percentage>, MathML used to define its owntype to describe lengths. Accepted values included non-zero unitless length values (e.g.,5 to mean500%), values containing numbers ending with a dot (e.g.,34.px), or named spaces (e.g.,thinmathspace). For compatibility reasons, it is recommended to replace non-zero unitless length values with equivalent<percentage> values, to remove unnecessary dots in numbers, and to use the following replacement for named lengths:

veryverythinmathspace  => 0.05555555555555555emverythinmathspace      => 0.1111111111111111emthinmathspace          => 0.16666666666666666emmediummathspace        => 0.2222222222222222emthickmathspace         => 0.2777777777777778emverythickmathspace     => 0.3333333333333333emveryverythickmathspace => 0.3888888888888889em

Units

UnitDescription
emFont-relative unit
exFont-relative unit. (The "x"-height of the element,1ex ≈ 0.5em in many fonts)
pxPixels
inInches (1 inch = 2.54 centimeters)
cmCentimeters
mmMillimeters
ptPoints (1 point = 1/72 inch)
pcPicas (1 pica = 12 points)
%Percentage of the default value.

Constants

ConstantValue
veryverythinmathspace1/18em
verythinmathspace2/18em
thinmathspace3/18em
mediummathspace4/18em
thickmathspace5/18em
verythickmathspace6/18em
veryverythickmathspace7/18em
negativeveryverythinmathspace-1/18em
negativeverythinmathspace-2/18em
negativethinmathspace-3/18em
negativemediummathspace-4/18em
negativethickmathspace-5/18em
negativeverythickmathspace-6/18em
negativeveryverythickmathspace-7/18em

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp