diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/mathml/tools/stacks.py')
-rw-r--r-- | tests/wpt/web-platform-tests/mathml/tools/stacks.py | 36 |
1 files changed, 20 insertions, 16 deletions
diff --git a/tests/wpt/web-platform-tests/mathml/tools/stacks.py b/tests/wpt/web-platform-tests/mathml/tools/stacks.py index 81f79befb69..18626291336 100644 --- a/tests/wpt/web-platform-tests/mathml/tools/stacks.py +++ b/tests/wpt/web-platform-tests/mathml/tools/stacks.py @@ -14,10 +14,11 @@ f.math.StackTopDisplayStyleShiftUp = 0 f.math.StackTopShiftUp = 0 mathfont.save(f) -v = 5 * mathfont.em -f = mathfont.create("stack-bottomdisplaystyleshiftdown%d" % v) -f.math.AxisHeight = 0 -f.math.StackBottomDisplayStyleShiftDown = v +v1 = 5 * mathfont.em +v2 = 1 * mathfont.em +f = mathfont.create("stack-bottomdisplaystyleshiftdown%d-axisheight%d" % (v1, v2)) +f.math.AxisHeight = v2 +f.math.StackBottomDisplayStyleShiftDown = v1 f.math.StackBottomShiftDown = 0 f.math.StackDisplayStyleGapMin = 0 f.math.StackGapMin = 0 @@ -25,11 +26,12 @@ f.math.StackTopDisplayStyleShiftUp = 0 f.math.StackTopShiftUp = 0 mathfont.save(f) -v = 6 * mathfont.em -f = mathfont.create("stack-bottomshiftdown%d" % v) -f.math.AxisHeight = 0 +v1 = 6 * mathfont.em +v2 = 1 * mathfont.em +f = mathfont.create("stack-bottomshiftdown%d-axisheight%d" % (v1, v2)) +f.math.AxisHeight = v2 f.math.StackBottomDisplayStyleShiftDown = 0 -f.math.StackBottomShiftDown = v +f.math.StackBottomShiftDown = v1 f.math.StackDisplayStyleGapMin = 0 f.math.StackGapMin = 0 f.math.StackTopDisplayStyleShiftUp = 0 @@ -58,24 +60,26 @@ f.math.StackTopDisplayStyleShiftUp = 0 f.math.StackTopShiftUp = 0 mathfont.save(f) -v = 3 * mathfont.em -f = mathfont.create("stack-topdisplaystyleshiftup%d" % v) -f.math.AxisHeight = 0 +v1 = 3 * mathfont.em +v2 = 1 * mathfont.em +f = mathfont.create("stack-topdisplaystyleshiftup%d-axisheight%d" % (v1, v2)) +f.math.AxisHeight = v2 f.math.StackBottomDisplayStyleShiftDown = 0 f.math.StackBottomShiftDown = 0 f.math.StackDisplayStyleGapMin = 0 f.math.StackGapMin = 0 -f.math.StackTopDisplayStyleShiftUp = v +f.math.StackTopDisplayStyleShiftUp = v1 f.math.StackTopShiftUp = 0 mathfont.save(f) -v = 9 * mathfont.em -f = mathfont.create("stack-topshiftup%d" % v) -f.math.AxisHeight = 0 +v1 = 9 * mathfont.em +v2 = 1 * mathfont.em +f = mathfont.create("stack-topshiftup%d-axisheight%d" % (v1, v2)) +f.math.AxisHeight = v2 f.math.StackBottomDisplayStyleShiftDown = 0 f.math.StackBottomShiftDown = 0 f.math.StackDisplayStyleGapMin = 0 f.math.StackGapMin = 0 f.math.StackTopDisplayStyleShiftUp = 0 -f.math.StackTopShiftUp = v +f.math.StackTopShiftUp = v1 mathfont.save(f) |