From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/mathml/element/maction/index.html | 230 +++++++++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 files/fr/web/mathml/element/maction/index.html (limited to 'files/fr/web/mathml/element/maction/index.html') diff --git a/files/fr/web/mathml/element/maction/index.html b/files/fr/web/mathml/element/maction/index.html new file mode 100644 index 0000000000..1aee31578c --- /dev/null +++ b/files/fr/web/mathml/element/maction/index.html @@ -0,0 +1,230 @@ +--- +title: maction +slug: Web/MathML/Element/maction +tags: + - MathML + - 'MathML:Element' + - 'MathML:Référence' +translation_of: Web/MathML/Element/maction +--- +

L'élément MathML <maction> permet de lier des actions à des (sous-)expressions.
+ L'action est définie par l'attribut actiontype qui peut prendre plusieurs valeurs. Pour définir quels éléments fils sont affectés par l'action, il est possible d'utiliser l'attribut selection.

+

Attributs

+
+
+ actiontype
+
+ L'action qui se produit pour cet élément. Les valeurs possibles sont : +
    +
  • statusline : S'il y a un clic sur l'expression ou que le lecteur passe la souris sur celle-ci, le message est envoyé au statut du navigateur (status line). La syntaxe est la suivante : <maction actiontype="statusline"> expression message </maction>.
  • +
  • toggle : Quand il y a un clic sur la sous-expression, la mise en forme des sous-expressions sélectionnées change. Ainsi chaque clic augmente la valeur de selection.
    + La syntaxe est la suivante : <maction actiontype="toggle" selection="entier-positif" > expression1 expression2 expressionN </maction>.
  • +
  • tooltip : Lorsque la souris passe au-dessus de l'expression, une info-bulle est affichée à proximité de l'expression.
    + La syntaxe est la suivante : <maction actiontype="tooltip"> expression message </maction>.
  • +
+
+
+ class, id, style
+
+ Afin d'être utilisés avec les feuilles de styles.
+
+ href
+
+ Un hyperlien pointant vers un URI donné.
+
+ mathbackground
+
+ La couleur de fond. Il est possible d'utiliser les codes au format #rgb, #rrggbb et les noms de couleurs HTML.
+
+ mathcolor
+
+ La couleur du texte. Il est possible d'utiliser les codes au format #rgb, #rrggbb et les noms de couleurs HTML.
+
+ selection
+
+ L'élément fils auquel s'applique l'action. La valeur par défaut est 1, ce qui correspond au premier élément fils.
+
+

Exemples

+
<math>
+
+<maction actiontype="toggle">
+
+  <mfrac>
+    <mn>6</mn>
+    <mn>8</mn>
+  </mfrac>
+
+  <mfrac>
+    <mrow>
+      <mn>3</mn>
+      <mo>&sdot;</mo>
+      <mn>2</mn>
+    </mrow>
+    <mrow>
+      <mn>4</mn>
+      <mo>&sdot;</mo>
+      <mn>2</mn>
+    </mrow>
+  </mfrac>
+
+  <mfrac>
+    <mn>3</mn>
+    <mn>4</mn>
+  </mfrac>
+
+</maction>
+
+</math>
+
+

Compatibilité des navigateurs

+

{{ CompatibilityTable() }}

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FonctionnalitéChromeFirefox (Gecko)Internet ExplorerOperaSafari
Support simple{{ CompatNo() }} {{webkitbug(85734) }}{{ CompatGeckoDesktop("1.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }} {{webkitbug(85734) }}
actiontype{{ CompatNo() }}toggle & statusline. tooltip is not implemented {{ bug(544001) }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
href{{ CompatNo() }} {{webkitbug(85733)}}{{ CompatGeckoDesktop("7.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }} {{webkitbug(85733)}}
mathbackground{{ CompatNo() }}{{ CompatGeckoDesktop("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
mathcolor{{ CompatNo() }}{{ CompatGeckoDesktop("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FonctionnalitéAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Support simple{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("1.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
actiontype{{ CompatNo() }}{{ CompatNo() }}toggle & statusline. tooltip is not implemented {{ bug(544001) }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
href{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("7.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
mathbackground{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
mathcolor{{ CompatNo() }}{{ CompatNo() }}{{ CompatGeckoMobile("2.0") }}{{ CompatNo() }}{{ CompatNo() }}{{ CompatNo() }}
+
+

Notes relatives à Gecko

+ +

Spécifications

+ + + + + + + + + + + + + + + + + + + + +
SpécificationStatutCommentaires
{{ SpecName('MathML3', 'chapter3.html#presm.maction', 'maction') }}{{ Spec2('MathML3') }}Spécification actuelle
{{ SpecName('MathML2', 'chapter3.html#presm.maction', 'maction') }}{{ Spec2('MathML2') }}Spécification initiale
+


+ th

-- cgit v1.2.3-54-g00ecf