mfrac[bevelled] tests

Serve the repo root over HTTP (for example python -m http.server 8080) and open http://localhost:8080/bevelled/index.html so ES modules load.

The first column is untransformed input. The third column is transformed by bevelled/bevelled.js via _MathTransforms.transform.

Note: the scriptlevel is incremented in the bevelled fraction, so the sizes of the nested parts should match on both before and after transformation.

Before vs after _MathTransforms.transform
Description Before (native) After (polyfill)
mfrac bevelled="true"
f ( x + 1 x - 1 ) + 1
f ( x + 1 x - 1 ) + 1
mfrac bevelled="true"
f ( x2 + 1 x2 - 1 ) - 1
f ( x2 + 1 x2 - 1 ) - 1
mfrac bevelled="true"
f ( x 2 3 + 1 x 2 3 - 1 ) - 1
f ( x 2 3 + 1 x 2 3 - 1 ) - 1
mfrac bevelled="false"
1 2 - 1
1 2 - 1
Nested mfrac bevelled="true"
1 2 3 - 1
1 2 3 - 1