diff --git a/files/en-us/web/mathml/element/maction/index.md b/files/en-us/web/mathml/element/maction/index.md index abb7840378ee068..836d7460a17ad15 100644 --- a/files/en-us/web/mathml/element/maction/index.md +++ b/files/en-us/web/mathml/element/maction/index.md @@ -34,39 +34,63 @@ This element's attributes include the [global MathML attributes](/en-US/docs/Web The following example uses the "toggle" `actiontype`: +```css hidden +html, +body { + height: 100%; +} + +body { + display: grid; + place-content: center; +} + +math { + font-size: 1.5em; +} + +maction { + padding: 0.5em; + cursor: pointer; +} +``` + ```html -

- Try clicking this formula several times: - - - - - 6 - 8 - - - - - 3 - × - 2 - - - 4 - × - 2 - - - - +

Try clicking this formula several times:

+ + + + 6 + 8 + + + + 3 + × + 2 + + 4 - - - -

+ × + 2 + + + + + 3 + 4 + + + ``` +Sample rendering: + +![MathML toggle action example](toggle.gif) + +Rendering in your browser: + {{EmbedLiveSample('Examples', 700, 200)}} ## Technical summary diff --git a/files/en-us/web/mathml/element/maction/toggle.gif b/files/en-us/web/mathml/element/maction/toggle.gif new file mode 100644 index 000000000000000..0270d9f271a3363 Binary files /dev/null and b/files/en-us/web/mathml/element/maction/toggle.gif differ