1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
|
---
title: mi
slug: Web/MathML/Element/mi
tags:
- MathML
- 'MathML:Element'
- 'MathML:Référence'
translation_of: Web/MathML/Element/mi
---
<p>L'élément MathML <code><mi></code> indique que le contenu doit être affiché comme un <strong>identifiant</strong> (comme les noms de fonctions, de variables ou les constantes symboliques). Il est également possible de l'utiliser avec du texte en général pour annoter.</p>
<h2 id="Attributs">Attributs</h2>
<dl>
<dt id="attr-class-id-style">
class, id, style</dt>
<dd>
Afin d'être utilisés avec les <a href="/fr/docs/CSS">feuilles de styles</a>.</dd>
<dt id="attr-dir">
dir</dt>
<dd>
Le sens de lecture du texte. Les valeurs possibles sont soit <code>ltr</code> (<em>left to right</em> pour gauche à droite) or <code>rtl</code> (<em>right to left</em> pour droite à gauche).</dd>
<dt id="attr-href">
href</dt>
<dd>
Un hyperlien pointant vers un URI donné.</dd>
<dt id="attr-mathbackground">
mathbackground</dt>
<dd>
La couleur de fond. Il est possible d'utiliser les codes au format <code>#rgb</code>, <code>#rrggbb</code> et les <a href="/fr/docs/CSS/valeur_de_couleur#Mots-cl.C3.A9s">noms de couleurs HTML</a>.</dd>
<dt id="attr-mathcolor">
mathcolor</dt>
<dd>
La couleur du texte. Il est possible d'utiliser les codes au format <code>#rgb</code>, <code>#rrggbb</code> et les <a href="/fr/docs/CSS/valeur_de_couleur#Mots-cl.C3.A9s">noms de couleurs HTML</a>.</dd>
<dt id="attr-mathsize">
mathsize</dt>
<dd>
La taille du contenu. Les valeurs possibles sont :
<ul>
<li><code>small :</code> La police utilisée sera plus petite que la police courante.</li>
<li><code>normal :</code> Équivalent à 100% ou 1em.</li>
<li><code>big :</code> La police utilisée sera plus grande que la police courante.</li>
<li>Une <a class="/fr/docs/CSS/longueur" href="/fr/docs/CSS/longueur">longueur quelconque</a>.</li>
<li>ou une valeur sans unité qui multiplie la taille par défaut.</li>
</ul>
</dd>
<dt id="attr-mathvariant">
mathvariant (implémenté en partie : voir {{ bug("114365") }} et {{ bug("162405") }})</dt>
<dd>
La classe logique des identifiants, variant selon la typographie. Cela veut dire que, bien que les noms suggèrent une certaine mise en forme, les éléments d'une même classe seront traités de la même manière au sein d'une même expression. Cela peut, ou pas, impliquer un affichage avec la typographie mentionnée. Les valeurs suivantes sont autorisées :
<ul>
<li><code>normal</code> (La valeur par défaut pour plus d'un caractère)</li>
<li><code>bold</code></li>
<li><code>italic</code> (La valeur par défaut pour un seul caractère)</li>
<li><code>bold-italic</code></li>
</ul>
<ul>
<li><code>double-struck</code> {{ unimplemented_inline() }}</li>
<li><code>bold-fraktur</code> {{ unimplemented_inline() }} (la mise en gras fonctionne)</li>
<li><code>script</code> {{ unimplemented_inline() }}</li>
<li><code>bold-script</code> {{ unimplemented_inline() }} (la mise en gras fonctionne)</li>
<li><code>fraktur</code> {{ unimplemented_inline() }}</li>
</ul>
<ul>
<li><code>sans-serif</code></li>
<li><code>bold-sans-serif</code></li>
<li><code>sans-serif-italic</code></li>
<li><code>sans-serif-bold-italic</code></li>
<li><code>monospace</code></li>
</ul>
<ul>
<li><code>initial</code> {{ unimplemented_inline() }}</li>
<li><code>tailed</code> {{ unimplemented_inline() }}</li>
<li><code>looped</code> {{ unimplemented_inline() }}</li>
<li><code>stretched</code> {{ unimplemented_inline() }}</li>
</ul>
</dd>
</dl>
<h2 id="Exemples">Exemples</h2>
<pre class="brush: html"><math>
<mi> y </mi>
<mi> sin </mi>
<mi mathvariant="monospace"> x </mi>
<mi mathvariant="bold"> &pi; </mi>
</math>
</pre>
<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop">
<table class="compat-table">
<tbody>
<tr>
<th>Fonctionnalité</th>
<th>Chrome</th>
<th>Firefox (Gecko)</th>
<th>Internet Explorer</th>
<th>Opera</th>
<th>Safari</th>
</tr>
<tr>
<td>Support simple</td>
<td>{{ CompatNo() }} (24 seulement)</td>
<td>{{ CompatGeckoDesktop("1.0") }}</td>
<td>{{ CompatNo() }}</td>
<td>9.5</td>
<td>5.1</td>
</tr>
<tr>
<td>attribut <code>dir</code></td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatGeckoDesktop("12.0") }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
</tr>
<tr>
<td>attribut <code>href</code></td>
<td>{{ CompatNo() }} {{webkitbug(85733)}}</td>
<td>{{ CompatGeckoDesktop("7.0") }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }} {{webkitbug(85733)}}</td>
</tr>
<tr>
<td>attribut <code>mathsize</code></td>
<td>{{ CompatNo() }} (24 seulement)</td>
<td>{{ CompatGeckoDesktop("1.0") }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>5.1</td>
</tr>
<tr>
<td>attribut <code>mathvariant</code></td>
<td>{{ CompatNo() }} (24 seulement)</td>
<td>en partie supporté (voir ci-avant)</td>
<td>{{ CompatNo() }}</td>
<td>en partie supporté, (voir ci-avant) [*]</td>
<td>en partie supporté, (voir ci-avant) [*]</td>
</tr>
</tbody>
</table>
</div>
<div id="compat-mobile">
<table class="compat-table">
<tbody>
<tr>
<th>Fonctionnalité</th>
<th>Android</th>
<th>Chrome for Android</th>
<th>Firefox Mobile (Gecko)</th>
<th>IE Mobile</th>
<th>Opera Mobile</th>
<th>Safari Mobile</th>
</tr>
<tr>
<td>Support simple</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatGeckoMobile("1.9.2") }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
</tr>
<tr>
<td>attribut <code>dir</code></td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatGeckoMobile("12.0") }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
</tr>
<tr>
<td>attribut <code>href</code></td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatGeckoMobile("7.0") }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
</tr>
<tr>
<td>attribut <code>mathsize</code></td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatGeckoMobile("1.9.2") }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
</tr>
<tr>
<td>attribut <code>mathvariant</code></td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>en partie supporté (voir ci-avant)</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
<td>{{ CompatNo() }}</td>
</tr>
</tbody>
</table>
</div>
<p>[*] La police ne change pas vers <code>normal</code> quand le contenu est plus qu'un seul caractère.</p>
<h3 id="Note_relative_à_Gecko">Note relative à Gecko</h3>
<p>À partir de Gecko 20.0 {{geckoRelease("20.0")}} une valeur sans unité est autorisée pour <code>mathsize</code>.</p>
<h2 id="Specifications" name="Specifications">Spécification</h2>
<table class="standard-table">
<thead>
<tr>
<th scope="col">Spécification</th>
<th scope="col">Statut</th>
<th scope="col">Commentaires</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ SpecName('MathML3', 'chapter3.html#presm.mi', 'mi') }}</td>
<td>{{ Spec2('MathML3') }}</td>
<td>Spécification actuelle</td>
</tr>
<tr>
<td>{{ SpecName('MathML2', 'chapter3.html#presm.mi', 'mi') }}</td>
<td>{{ Spec2('MathML2') }}</td>
<td>Spécification initiale</td>
</tr>
</tbody>
</table>
<p> </p>
|