Skip to content

Vertical Alignment of <mo> delimiters #205

@ronkok

Description

@ronkok

I propose two edits to MathML-Core section 3.2.4.3 Layout of operators.

The first edit is shown below in bold.

  1. If the operator has the stretchy property or has the minsize attribute:

There is a current problem with <mo> delimiters in both Chromium and WebKit. This problem affects a parenthesis which does not have stretchy="true" but has been up-sized with a minsize attribute. Such delimiters should be vertically aligned to be centered on the math axis. Both Chromium and WebKit fail to make that adjustment.

You can see an example if you navigate to the Temml Mozilla tests and scroll down to line 14. There are more examples in the Wikipedia tests, in lines 178 & 179.

I propose a second edit after the line which reads “Otherwise, the stretch axis of the operator is block. The following steps are performed.”

I propose to insert item 2 below.

  1. If the size of in-flow children make it unnecessary to shape a stretchy glyph in the block direction, then fallback to the layout algorithm of 3.2.1.1 Layout of <mtext>.

This problem also occurs in both Chromium and WebKit. An example can be seen here. Those parentheses do not need to stretch, and they don’t. So far, so good. The problem is that they do not need an adjustment to their vertical alignment. But the alignment has been changed. They are placed too high.

My first proposal is related to Chromium Issue 1468676. My second proposal is related to Chromium Issue 1350167.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions