author | Oana Pop Rus <opoprus@mozilla.com> |
Tue, 13 Aug 2019 18:01:33 +0300 | |
changeset 487684 | 54853be004185a34289361d6bfb8b9cf45b52128 |
parent 487683 | 627f7538abb04e35949c09ae5b4cf53650c23132 |
child 487685 | 3b30c8db537cfa66b46b49ee2e051d8fcc8eaaaf |
push id | 92409 |
push user | opoprus@mozilla.com |
push date | Tue, 13 Aug 2019 15:02:35 +0000 |
treeherder | autoland@54853be00418 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 1572211 |
milestone | 70.0a1 |
backs out | 48fa8b517d7bbcf1fd49d0c06fde59ca6b694817 a5d589b74745dca4d522d3abb362103074b03bde |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/layout/mathml/nsMathMLmfracFrame.cpp +++ b/layout/mathml/nsMathMLmfracFrame.cpp @@ -311,16 +311,20 @@ nsresult nsMathMLmfracFrame::PlaceIntern nscoord minClearance = displayStyle ? 7 * defaultRuleThickness : 3 * defaultRuleThickness; if (mathFont) { minClearance = mathFont->MathTable()->Constant( displayStyle ? gfxMathTable::StackDisplayStyleGapMin : gfxMathTable::StackGapMin, oneDevPixel); } + // Factor in axis height + // http://www.mathml-association.org/MathMLinHTML5/S3.html#SS3.SSS2 + numShift += axisHeight; + denShift += axisHeight; nscoord actualClearance = (numShift - bmNum.descent) - (bmDen.ascent - denShift); // actualClearance should be >= minClearance if (actualClearance < minClearance) { nscoord halfGap = (minClearance - actualClearance) / 2; numShift += halfGap; denShift += halfGap;
new file mode 100644 --- /dev/null +++ b/testing/web-platform/meta/mathml/presentation-markup/fractions/frac-parameters-2.html.ini @@ -0,0 +1,13 @@ +[frac-parameters-2.html] + [TopDisplayStyleShiftUp] + expected: FAIL + + [BottomDisplayStyleShiftDown] + expected: FAIL + + [BottomShiftDown] + expected: FAIL + + [ToShiftUp] + expected: FAIL +