From e65064d2060bb2fce15fe8aed5e5477ae77062ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Thu, 26 Aug 2021 03:24:45 -0700 Subject: [PATCH] [mathml] Use embellished operator properties for underover gaps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The MathML Core spec [1] [2] contains the following cases for underover layout: 1. The base is an embellished operator with the largeop property. 2. The base is an embellished operator with the stretchy property and stretch axis inline. Currently, the underover algorithm only checks if the base is an element. This CL modifies to instead check whether it is an embellished operators and if that's the case retrieve these properties from the core operator. New WPT tests are added to cover the changes from this CL: - underover-parameters-and-embellished-operator-1.html is a copy of underover-parameters-and-operator-1.html with embellished with an . It checks (1) above. - underover-parameters-and-embellished-operator-2.html is a copy of underover-parameters-and-operator-2.html with embellished with an . It checks (2) above. [1] https://w3c.github.io/mathml-core/#base-with-underscript [2] https://w3c.github.io/mathml-core/#base-with-overscript Bug: 6606, 1124298 Change-Id: I2f30ed19cceacb7e2fbd70f83e2e81af9b0537c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3071438 Commit-Queue: Frédéric Wang Reviewed-by: Ian Kilpatrick Cr-Commit-Position: refs/heads/main@{#915528} --- ...parameters-and-embellished-operator-1.html | 151 ++++++++++++++++++ ...parameters-and-embellished-operator-2.html | 151 ++++++++++++++++++ 2 files changed, 302 insertions(+) create mode 100644 mathml/presentation-markup/scripts/underover-parameters-and-embellished-operator-1.html create mode 100644 mathml/presentation-markup/scripts/underover-parameters-and-embellished-operator-2.html diff --git a/mathml/presentation-markup/scripts/underover-parameters-and-embellished-operator-1.html b/mathml/presentation-markup/scripts/underover-parameters-and-embellished-operator-1.html new file mode 100644 index 00000000000000..1c236eabed4d72 --- /dev/null +++ b/mathml/presentation-markup/scripts/underover-parameters-and-embellished-operator-1.html @@ -0,0 +1,151 @@ + + + + +Underscripts and Overscripts parameters (embellished operators) + + + + + + + + + + +
+

+ + + + + + + + + + + + +

+
+

+ + + + + + + + + + + + +

+
+

+ + + + + + + + + + + + +

+
+

+ + + + + + + + + + + + +

+ + diff --git a/mathml/presentation-markup/scripts/underover-parameters-and-embellished-operator-2.html b/mathml/presentation-markup/scripts/underover-parameters-and-embellished-operator-2.html new file mode 100644 index 00000000000000..04a97786c474f9 --- /dev/null +++ b/mathml/presentation-markup/scripts/underover-parameters-and-embellished-operator-2.html @@ -0,0 +1,151 @@ + + + + +Underscripts and Overscripts parameters (embellished operators) + + + + + + + + + + +
+

+ + + + + + + + + + + + +

+
+

+ + + + + + + + + + + + +

+
+

+ + + + + + + + + + + + +

+
+

+ + + + + + + + + + + + +

+ +