This page contains some tests for the menclose element. These are rendered via the 'menclose.js' polyfill.
Native menclose (middle column) vs polyfill (right column), same MathML in each row.
| Image | Native menclose (no polyfill on this subtree) |
After _MathTransforms.transform |
|---|---|---|
![]() |
|
| Image | Native menclose (no polyfill on this subtree) |
After _MathTransforms.transform |
|---|---|---|
![]() |
|
| Image | Native menclose (no polyfill on this subtree) |
After _MathTransforms.transform |
|---|---|---|
![]() |
|
Each row shows the same MathML twice: the middle column is outside any polyfill run (native menclose); the right column is wrapped in menclose-test-polyfill-root and processed with _MathTransforms.transform so you can compare native rendering with the polyfill.
| Description | Native menclose (no polyfill on this subtree) |
After _MathTransforms.transform |
|---|---|---|
| menclose default (should be long division): |
|
|
| menclose longdiv: |
|
|
| menclose actuarial: |
|
|
| menclose phasorangle: |
|
|
| menclose radical: |
|
|
| menclose box: |
|
|
| menclose roundedbox: |
|
|
| menclose circle: |
|
|
| menclose left: |
|
|
| menclose right: |
|
|
| menclose top: |
|
|
| menclose bottom: |
|
|
| menclose updiagonalstrike: |
|
|
| menclose downdiagonalstrike: |
|
|
| menclose verticalstrike: |
|
|
| menclose horizontalstrike: |
|
|
| menclose northeastarrow: |
|
|
| menclose uparrow: |
|
|
| menclose rightarrow: |
|
|
| menclose downarrow: |
|
|
| menclose leftarrow: |
|
|
| menclose northwestarrow: |
|
|
| menclose southwestarrow: |
|
|
| menclose southeastarrow: |
|
|
| menclose leftrightarrow: |
|
|
| menclose updownarrow: |
|
|
| menclose northwestsoutheastarrow: |
|
|
| menclose northeastsouthwestarrow: |
|
|
| menclose madruwb: |
|
|
| menclose box and unknown notation values (foo and bar): |
|
|
| menclose with ony unknown notation values (foo and bar) -- should use default long div: |
|
Native menclose (middle) vs polyfill (right), same markup in each row.
| Description | Native menclose (no polyfill on this subtree) |
After _MathTransforms.transform |
|---|---|---|
| menclose left and right with arrow to touch: |
|
|
| menclose top and bottom with arrow to touch: |
|
|
| menclose top and right with arrows to touch: |
|
|
| menclose bottom and left with arrows to touch: |
|
|
| menclose horizontal/vertical/diagonal double and box: |
|
|
| menclose horizontal/vertical/diagonal double and box (order changed from above): |
|
|
| menclose diagonal arrows and box: |
|
|
| menclose diagonal arrows and box: |
|
|
| menclose diagonal arrows and box: |
|
|
| menclose horizontal/vertical arrows and box: |
|
|
| menclose horizontal/vertical arrows and box: |
|
|
| menclose horizontal/vertical/diagonal double arrows and box: |
|
|
| menclose horizontal/vertical/diagonal strikes and right, top: |
|
|
| menclose horizontal/vertical/diagonal strikes and left, bottom: |
|
|
| menclose circle with horizontal/vertical strikes: |
|
|
| menclose roundedbox with horizontal/vertical strikes: |
|
dir is set on the math element unless otherwise noted. Native menclose (middle) vs polyfill (right), same markup in each row.
| Description | Native menclose (no polyfill on this subtree) |
After _MathTransforms.transform |
|---|---|---|
| menclose phasorangle (should reverse): |
|
|
| menclose phasorangle (dir set on 'mrow', should reverse): |
|
|
| menclose radical (should reverse, relies on underlying implementation of msqrt): |
|
|
| menclose left (should stay on left): |
|
|
| menclose longdiv (should stay on left): |
|
|
| menclose rightarrow (should still point to right): |
|