menclose

This page contains some tests for the menclose element. These are rendered via the 'menclose.js' polyfill.

Examples from MathML spec (some general examples)

  1. box and circle
    Image MathML
    circled x plus y x + y
  2. actuarial notation
    Image MathML
    actuarial notation a n i
  3. phasorangle
    Image MathML
    phasor angle of negative pi over 2 C π 2

menclose attribute sweep (in isolation)

  1. menclose default (should be long division): x + y
  2. menclose longdiv: 128
  3. menclose actuarial: x + y 2
  4. menclose phasorangle: π / 8
  5. menclose radical: x + y 2
  6. menclose box: x + y 2
  7. menclose roundedbox: x + y 2
  8. menclose circle: x + y 2
  9. menclose left: x + y 2
  10. menclose right: x + y 2
  11. menclose top: x + y 2
  12. menclose bottom: x + y 2
  13. menclose updiagonalstrike: x + y 2
  14. menclose downdiagonalstrike: x + y 2
  15. menclose verticalstrike: x + y 2
  16. menclose horizontalstrike: x + y 2
  17. menclose northeastarrow: x + y 2
  18. menclose uparrow: x + y 2
  19. menclose rightarrow: x + y 2
  20. menclose downarrow: x + y 2
  21. menclose leftarrow: x + y 2
  22. menclose northwestarrow: x + y 2
  23. menclose southwestarrow: x + y 2
  24. menclose southeastarrow: x + y 2
  25. menclose leftrightarrow: x + y 2
  26. menclose updownarrow: x + y 2
  27. menclose northwestsoutheastarrow: x + y 2
  28. menclose northeastsouthwestarrow: x + y 2
  29. menclose madruwb: x + y 3
  30. menclose box and unknown notation values (foo and bar): x + y 3
  31. menclose with ony unknown notation values (foo and bar) -- should use default long div: x + y 3

menclose attributes in combination

  1. menclose left and right with arrow to touch: x + y 2 + x + y
  2. menclose top and bottom with arrow to touch: x + y 2 + x + y
  3. menclose top and right with arrows to touch: x + y 2 + x + y
  4. menclose bottom and left with arrows to touch: x + y 2 + x + y
  5. menclose horizontal/vertical/diagonal double and box: x + y 2
  6. menclose horizontal/vertical/diagonal double and box (order changed from above): x + y 2
  7. menclose diagonal arrows and box: x + y 2 + x + y
  8. menclose diagonal arrows and box: x + y 2 + x + y
  9. menclose diagonal arrows and box: x + y 2 + x + y
  10. menclose horizontal/vertical arrows and box: x + y 2 + x + y
  11. menclose horizontal/vertical arrows and box: x + y 2 + x + y
  12. menclose horizontal/vertical/diagonal double arrows and box: x + y 2
  13. menclose horizontal/vertical/diagonal strikes and right, top: x + y 2
  14. menclose horizontal/vertical/diagonal strikes and left, bottom: x + y 2
  15. menclose circle with horizontal/vertical strikes: x + y 2 + x + y
  16. menclose roundedbox with horizontal/vertical strikes: x + y 2 + x + y

menclose rtl dir tests

'dir' is set on 'math' element unless otherwise specified.

  1. menclose phasorangle (should reverse): π / 8
  2. menclose phasorangle (dir set on 'mrow', should reverse): π / 8
  3. menclose radical (should reverse, relies on underlying implementation of msqrt): π / 8
  4. menclose left (should stay on left): π / 8
  5. menclose longdiv (should stay on left): π / 8
  6. menclose rightarrow (should still point to right): π / 8