[mathml] Use accent/accentunder and AccentBaseHeight for underover layout
Partial support for the accent/accentunder attributes on the munder, mover and munderover elements has been added in the UA stylesheet [1]. This CL modifies the munderover layout algorithm to take these boolean attributes into account when determining gaps and shifts parameters as specified in [2] and [3]. Additionally, for overscript we also rely on the OpenType MATH.MathConstants.AccentBaseHeight parameter as specified in [3]. This makes the remaining underover-parameters-3.html test pass. Note that underover-parameters-4.html no longer corresponds to what is in the MathML Core specification [4] and we will ignore it in our implementation. Finally, this CL extends underover-parameters-3.html to also test dynamic changes of accent/accentunder attributes, using various syntaxes for true/false. [1] https://chromium-review.googlesource.com/c/chromium/src/+/2184131 [2] https://mathml-refresh.github.io/mathml-core/#base-with-underscript [3] https://mathml-refresh.github.io/mathml-core/#base-with-overscript [4] https://github.com/web-platform-tests/wpt/commit/aab53f17c0f688da550311ddc919c1702fb8681b Bug: 6606, 1124285, 1124289 Change-Id: Ie589a2f2a00e6f49b15376bd83762d34c914fd65 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391083Reviewed-by:Rob Buis <rbuis@igalia.com> Reviewed-by:
Morten Stenshorne <mstensho@chromium.org> Commit-Queue: Frédéric Wang <fwang@igalia.com> Cr-Commit-Position: refs/heads/master@{#804233}
Showing
Please register or sign in to comment