[wpt-sync] Sync PR 38215 - [mathml] Fix offset of vertical glyph assembly
Categories
(Core :: MathML, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox111 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 38215 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/38215
Details from upstream follow.
Frédéric Wang <fwang@igalia.com> wrote:
[mathml] Fix offset of vertical glyph assembly
When ShapeResult::CreateForStretchyMathOperator shapes vertical glyph
assemblies, the offset of each part is adjusted by the advance specified
in the corresponding MathGlyphVariantRecord table [1]. Note that this may be slightly different from the calculated height of the glyph, but
is faster to get. In any case the baselines of glyphs are used as a
reference when setting an offset in ShapeResults, so this CL changes the
adjustment to use the glyph ascent instead of the glyph height.This CL fixes rendering issues for vertical stretchy MathML Operators
for fonts like Cambria Math that use non-zero descent for parts in a
glyph assembly.StretchyOperatorShaperTest.GlyphVariants is tweaked to use an equivalent
stretchy.woff font (glyphs have zero descent) and a new test
StretchyOperatorShaperTest.GlyphVariantsCenteredOnBaseline is introduced
for a similar stretchy-centered-on-baseline.woff (glyphs have non-zero
and equal ascent/descent).Finally, a WPT test is added to check that the painting of a vertical
glyph assembly with the two fonts above matches the location of their
bounding boxes.[1] https://learn.microsoft.com/en-us/typography/opentype/spec/math
Bug: 1409380
Change-Id: I173c1cf461cebe3523e1a10aaf8d7b479bca03adReviewed-on: https://chromium-review.googlesource.com/4197134
WPT-Export-Revision: 73792eb3878b4fc4efaf69643393cfbb214c2b99
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=b299087e5ae6d9e148c0f1c8779b1fda21091873
Assignee | ||
Comment 2•1 year ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 6 tests
Status Summary
Firefox
OK
: 1
FAIL
: 10
Chrome
OK
: 1
PASS
: 9
FAIL
: 1
Safari
OK
: 1
PASS
: 1
FAIL
: 9
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
Firefox-only Failures
- /mathml/presentation-markup/mrow/stretch-along-block-axis-001.html [wpt.fyi]
- Taking into account stretchy property.:
FAIL
- Taking into account stretchy property.:
New Tests That Don't Pass
- /mathml/presentation-markup/mrow/stretch-along-block-axis-001.html [wpt.fyi]
- Taking into account stretch axis.:
FAIL
(Chrome:PASS
, Safari:FAIL
) - Taking into account stretchy property.:
FAIL
(Chrome:PASS
, Safari:PASS
) - Only operators with a stretchy property and block stretch axis.:
FAIL
(Chrome:PASS
, Safari:FAIL
) - Operators smaller and larger than non-stretchy siblings.:
FAIL
(Chrome:PASS
, Safari:FAIL
) - Embellished operators:
FAIL
(Chrome:PASS
, Safari:FAIL
)
- Taking into account stretch axis.:
- /mathml/presentation-markup/operators/painting-stretchy-operator-001.html [wpt.fyi]:
FAIL
(Chrome:FAIL
, Safari:FAIL
) - /mathml/presentation-markup/scripts/underover-stretchy-001.html [wpt.fyi]:
FAIL
(Chrome:PASS
, Safari:FAIL
) - /mathml/presentation-markup/scripts/underover-stretchy-002.html [wpt.fyi]:
FAIL
(Chrome:PASS
, Safari:FAIL
) - /mathml/presentation-markup/scripts/underover-stretchy-003.html [wpt.fyi]:
FAIL
(Chrome:PASS
, Safari:FAIL
) - /mathml/relations/css-styling/padding-border-margin/padding-border-margin-003.html [wpt.fyi]:
FAIL
(Chrome:PASS
, Safari:FAIL
)
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7bc0821e8053 [wpt PR 38215] - [mathml] Fix offset of vertical glyph assembly, a=testonly https://hg.mozilla.org/integration/autoland/rev/e2713abc0206 [wpt PR 38215] - Update wpt metadata, a=testonly
Comment 4•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/7bc0821e8053
https://hg.mozilla.org/mozilla-central/rev/e2713abc0206
Description
•