math-style

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.

La propriété math-style détermine si les équations MathML devraient être affichées en hauteur normale ou compacte.

Syntaxe

css
/* Valeurs avec un mot-clé */
math-style: normal;
math-style: compact;

/* Valeurs globales */
math-sytle: inherit;
math-style: initial;
math-style: revert;
math-style: unset;

Valeurs

normal

La valeur initiale, indiquant un rendu normal.

compact

La mise en page des éléments de l'équation est faite de manière à réduire la hauteur de l'ensemble.

Définition formelle

Valeur initialenormal
Applicabilitétous les éléments
Héritéeoui
Valeur calculéecomme spécifié
Type d'animationNot animatable

Syntaxe formelle

math-style = 
normal |
compact

Exemple

CSS

css
math {
  math-style: compact;
}

Spécifications

Specification
MathML Core
# the-math-style-property

Compatibilité des navigateurs

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
math-style

Legend

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

Full support
Full support
No support
No support