Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mathml] Use embellished operator properties for underover gaps #29893

Merged
merged 1 commit into from Aug 26, 2021

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Aug 4, 2021

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 <mo> 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 <mo>
    embellished with an <mrow>. It checks (1) above.
  • underover-parameters-and-embellished-operator-2.html is a copy
    of underover-parameters-and-operator-2.html with <mo>
    embellished with an <mrow>. 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 <fwang@igalia.com>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#915528}

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Chromium project.

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 <mo> 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 <mo>
  embellished with an <mrow>. It checks (1) above.
- underover-parameters-and-embellished-operator-2.html is a copy
  of underover-parameters-and-operator-2.html with <mo>
  embellished with an <mrow>. 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 <fwang@igalia.com>
Reviewed-by: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#915528}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants