## MathML

## [REQUIRED] mathml-010 Basic rendering

Tests whether MathML equation rendering is supported.

∫ − ∞ ∞ e − x 2 d x = π ∑ n = 1 ∞ 1 n 2 = π 2 6 x = − b ± b 2 − 4 a c 2 a

If the preceding equations are not presented as linear text (e.g., x=-b±b2-4ac2a), the test passes. The visual rendering should be similar to the following image.

## [REQUIRED] mathml-020 MathML styling

Tests whether basic MathML styling is supported.

2 ⁡ x + y + z

The test passes if the equation "2x+y+z" has a yellow background, a dashed border with padding, the first occurrence of + is enlarged to 150% font size, the identifiers (x, y, z) are colored white on green background. The visual rendering should be similar to the following image.

## [OPTIONAL] mathml-021 CSS Styling

Tests whether basic CSS styling of MathML is supported on the `math` element.

2 ⁡ x + y + z

The test passes if the equation "2x+y+z" has a yellow background, a dashed border with padding, the first occurrence of + is enlarged to 150% font size, the identifiers (x, y, z) are colored white on green background. The visual rendering should be similar to the following image.

If the reading system does not have a viewport, or does not support CSS styles, this test should be marked `Not Supported`.

## [REQUIRED] mathml-030Iterated roots

Tests basic layout of surds.

1 + 1 + 1 + 1 + 1 + 1 + 1 + x

The test passes if the seven iterated surds (the root signs) extend over the respective subexpressions and remain distinguishable. The visual rendering should be similar to the following image.

## [REQUIRED] mathml-040Vertical stretch

Tests basic vertical stretch of parentheses.

( ( a b c d ) ( e f g h ) 0 ( i j k l ) )

The test passes if the parantheses stretch vertically both outside and in the subexpressions. The visual rendering should be similar to the following image.

## [REQUIRED] mathml-050Horizontal stretch, `mover`, `munder`, and `mspace` elements

Tests whether horizontal stretch, `mover`, `munder`, `mspace` elements are supported.

c = a ⏟ real + b ⁢ ⅈ ⏟ imaginary ⏞ complex number

The test passes if the overbrace stretches to the width of the right hand side of the equation and the undebraces stretches to the width of the (padded) identifiers (a and b). The visual rendering should be similar to the following image.

## [REQUIRED] mathml-60Testing `mtable` with alignments and styling

Tests whether `mtable` with borders and basic alignments attributes are supported.

Top 3 3 3 3 3 3 Bottom 3 3 3 3 3 3 Center 3 3 3 3 3 3 Baseline 3 3 3 3 3 3

The test passes if the table has a solid frame and dotted row and column borders and the equations are aligned according to the first column entry. The visual rendering should be similar to the following image.

## [REQUIRED] mathml-061Testing `mtable` with alignments and styling

Tests whether `mtable` with borders and basic alignments attributes are supported.

n Left Center Right 1 1 1 1 2 189 189 189 3 2000 2000 2000

The test passes if the table has a solid line between rows 1 and 2 and columns 1 and 2 and the equations are aligned according to the first row entry. The visual rendering should be similar to the following image.

## [REQUIRED] mathml-070BiDi, RTL and Arabic alphabets

Tests basic support for bi-directional layout and Arabic alphabets.

Test Without dir With dir=rtl mmultiscripts g h i j k l m a b c d e f g h i j k l m a b c d e f Equation in Arabic ١ ٣ ١ ٣ ٧ × ٣ ٤ ٢ = ١٢١ ٦ = ١ ٦ ٢٠ ١ ٣ ١ ٣ ٧ × ٣ ٤ ٢ = ١٢١ ٦ = ١ ٦ ٢٠

The test passes if entries in the third column look like the "mirror image" of the second column (except for the characters themselves). The visual rendering should be similar to the following image.

## [REQUIRED] mathml-080Elementary math notation: long division

Tests whether `mlongdiv` elements are supported.

3 435.3 1306 12 10 9 16 15 1.0 9 1

The test passes if rendering looks like the long division of 1306 divided by 3 in US-style notation. The visual rendering should be similar to the following image.

## [REQUIRED] mathml-081Elementary math notation: mstack, mscarries

Tests whether `mstack` and `mscarries` elements are supported.

2 12 2,327 - 1,156 1,171

The test passes if the rendering looks like written substraction of 2327-1156, with carries in north position and strike-outs in vertical position. The visual rendering should be similar to the following image.

## [REQUIRED] mathml-090Multiscripts, Under-over, Greek and Gothic alphabets

Tests whether `mmultiscript` and `munderover` elements as well as Greek and Gothic alphabets are supported.

∏ 𝔈 υ τ ρ σ 𝔇 π ο ν ξ 𝔄 δ γ α β 𝔅 θ η ε ζ 𝔉 ω ψ ϕ χ ℭ μ λ ι κ

The test passes if the central Pi is surrounded by under-, over-, and multiscripts (i.e., sub-, sup-, pre-sub, and pre-sup scripts); the multiscript entries have central Gothic letters surrounded by Greek multiscripts. The visual rendering should be similar to the following image.
.