Closed Bug 1682843 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 26924 - Treat mmultiscripts with two <mprescripts> children as invalid

Categories

(Core :: MathML, task, P4)

task

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 26924 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/26924
Details from upstream follow.

b'Fr\xc3\xa9d\xc3\xa9ric Wang <fwang@igalia.com>' wrote:

Treat mmultiscripts with two <mprescripts> children as invalid

Per [1], mmultiscripts can only have one in-flow \<mprescripts/> child so
this CL fixes IsValidMultiscript() to align with the specification.
It also makes similar adjustment for the corresponding fatal checks in
NGMathScriptsLayoutAlgorithm::GatherChildren (rather than just checking
the index of a previous \<mprescripts> is nonzero, which does not work if
there is no post-scripts). This fixes an assertion about node not being
laid out due to the fact that the mmultiscripts algorithm only performs
layout of at most one \<mprescript>.

[1] https://mathml-refresh.github.io/mathml-core/#prescripts-and-tensor-indices-mmultiscripts

Bug: 1158375
Change-Id: I26964b2ef287585392db7f1854251b4b21075aef
Reviewed-on: https://chromium-review.googlesource.com/2593643
WPT-Export-Revision: d0bcbc2130189c32489dd0f8c1a7cc24c4c0469a

Component: web-platform-tests → MathML
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 1 tests

Status Summary

Firefox

PASS: 1

Chrome

PASS: 1

Safari

PASS: 1

Links

GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/15fccfad92e1
[wpt PR 26924] - Treat mmultiscripts with two <mprescripts> children as invalid, a=testonly
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.