mfrac without bar: Remove test for AxisHeight parameter. (#18323)
AxisHeight is no longer involved in the layout:
https://mathml-refresh.github.io/mathml-core/#fraction-with-zero-line-thickness
Confirmed by Microsoft:
https://lists.w3.org/Archives/Public/public-mathml4/2019Aug/0019.html
See https://github.com/mathml-refresh/mathml/issues/123
diff --git a/fonts/math/stack-axisheight7000.woff b/fonts/math/stack-axisheight7000.woff
deleted file mode 100644
index 7a9dc5d..0000000
--- a/fonts/math/stack-axisheight7000.woff
+++ /dev/null
Binary files differ
diff --git a/mathml/presentation-markup/fractions/frac-parameters-2.html b/mathml/presentation-markup/fractions/frac-parameters-2.html
index 9c36386..1512657 100644
--- a/mathml/presentation-markup/fractions/frac-parameters-2.html
+++ b/mathml/presentation-markup/fractions/frac-parameters-2.html
@@ -13,10 +13,6 @@
font-size: 10px;
}
@font-face {
- font-family: axisheight7000;
- src: url("/fonts/math/stack-axisheight7000.woff");
- }
- @font-face {
font-family: bottomdisplaystyleshiftdown5000-axisheight1000;
src: url("/fonts/math/stack-bottomdisplaystyleshiftdown5000-axisheight1000.woff");
}
@@ -56,13 +52,6 @@
});
function runTests() {
- test(function() {
- assert_true(MathMLFeatureDetection.has_mspace());
-
- var v = 7000 * emToPx;
- assert_approx_equals(getBox("ref0001").top - getBox("num0001").bottom,
- v, epsilon, "mfrac: axis height");
- }, "AxisHeight");
test(function() {
assert_true(MathMLFeatureDetection.has_mspace());
@@ -119,16 +108,6 @@
<body>
<div id="log"></div>
<p>
- <math style="font-family: axisheight7000;">
- <mspace id="ref0001" depth="1em" width="3em" style="background: green"/>
- <mfrac linethickness="0px">
- <mspace width="3em" height="1em" id="num0001" style="background: blue"/>
- <mspace width="3em"/>
- </mfrac>
- </math>
- </p>
- <hr/>
- <p>
<math display="block" style="font-family: bottomdisplaystyleshiftdown5000-axisheight1000;">
<mspace id="ref0002" width="3em" height="1em" style="background: green"/>
<mfrac linethickness="0px">
diff --git a/mathml/tools/stacks.py b/mathml/tools/stacks.py
index 1862629..9a4c291 100644
--- a/mathml/tools/stacks.py
+++ b/mathml/tools/stacks.py
@@ -3,17 +3,6 @@
from utils import mathfont
import fontforge
-v = 7 * mathfont.em
-f = mathfont.create("stack-axisheight%d" % v)
-f.math.AxisHeight = v
-f.math.StackBottomDisplayStyleShiftDown = 0
-f.math.StackBottomShiftDown = 0
-f.math.StackDisplayStyleGapMin = 0
-f.math.StackGapMin = 0
-f.math.StackTopDisplayStyleShiftUp = 0
-f.math.StackTopShiftUp = 0
-mathfont.save(f)
-
v1 = 5 * mathfont.em
v2 = 1 * mathfont.em
f = mathfont.create("stack-bottomdisplaystyleshiftdown%d-axisheight%d" % (v1, v2))