[mathml] Implement script level attribute and font-size extension
MathML Core support the script level functionality both using a font-size extension and as an attribute on MathML elements. The scriptlevel attributes simply maps to the font-size extension [1]. The font-size extension follows the algorithm stated in [2]. In order to keep track of the internal scriptlevel [3] an internal property MathScriptLevel is added to the computed style. Finally various stylesheet rules related to script level are taken as-is from the specification stylesheet [4]. [1] https://mathml-refresh.github.io/mathml-core/#the-displaystyle-and-scriptlevel-attributes [2] https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property [3] https://mathml-refresh.github.io/mathml-core/#dfn-internal-scriptlevel [4] https://mathml-refresh.github.io/mathml-core/#user-agent-stylesheet Bug: 1023292 Change-Id: I47ed250a63049b15daff53f9c0942cf676b21acd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2184131Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Frédéric Wang <fwang@igalia.com> Commit-Queue: Rob Buis <rbuis@igalia.com> Cr-Commit-Position: refs/heads/master@{#770955}
Showing
Please register or sign in to comment