File: assistive-mml.rst

package info (click to toggle)
mathjax-docs 2.7%2B20161014-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,080 kB
  • ctags: 14
  • sloc: sh: 22; python: 19; makefile: 8
file content (43 lines) | stat: -rw-r--r-- 1,366 bytes parent folder | download | duplicates (3)
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
.. _assistive-mml:

******************************
The AssistiveMML.js extension
******************************

The options below control the operation of the `AssistiveMML`
extension that is run when you include ``"AssistiveMML.js"`` in the
`extensions` array of your configuration.  They are listed with their
default values.  To set any of these options, include a
``AssistiveMML`` section in your :meth:`MathJax.Hub.Config()` call.

For example

.. code-block:: javascript

  MathJax.Hub.Config({
    "AssistiveMML": {
      disabled: false,
      styles: {
        ".MJX_Assistive_MathML": {
          position:"absolute!important",
          clip: (HUB.Browser.isMSIE && (document.documentMode||0) < 8 ?
                 "rect(1px 1px 1px 1px)" : "rect(1px, 1px, 1px, 1px)"),
          padding: "1px 0 0 0!important",
          border: "0!important",
          height: "1px!important",
          width: "1px!important",
          overflow: "hidden!important",
          display:"block!important"
        }
      }
    }
  })


would enable the extension and defines :ref:`CSS Style Objects <css-style-objects>` to define CSS applied to the MathML content embedded in the page.

See also :ref:`Screenreader support <screenreader-support>`.

.. note:: 

  We strongly recommend using the more advanced :ref:`Accessibility Extensions <a11y-extensions>` instead.