Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • M MathJax
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MathJax
  • MathJax
  • Issues
  • #2890
Closed
Open
Issue created Jun 24, 2022 by hbghlyj@hbghlyj

omitted columnalign attribute of <mtable> interpreted differently by Firefox

(I was using TeX input and native MathML output)

In MathML generated by MathJax, columnalign attribute of <mtable> will be omitted if it is same as that of its parent, while in Firefox, without columnalign specified will be centered (as is the default value).

Consequently, in the cases LL and RR, the MathML generated by MathJax will be interpreted differently by Firefox — MathJax will omit the columnalign attribute of the inner <mtable> which will be interpreted as default value center in Firefox, not as expected L or R.

Test code:

\begin{array}{l}1\\{\begin{array}{l}111\\2\end{array}}\end{array}

image MathML generated by MathJax:

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
  <mtable columnalign="left" columnspacing="1em" rowspacing="4pt">
    <mtr>
      <mtd>
        <mn>1</mn>
      </mtd>
    </mtr>
    <mtr>
      <mtd>
        <mrow data-mjx-texclass="ORD">
          <mtable columnspacing="1em" rowspacing="4pt">
            <mtr>
              <mtd>
                <mn>111</mn>
              </mtd>
            </mtr>
            <mtr>
              <mtd>
                <mn>2</mn>
              </mtd>
            </mtr>
          </mtable>
        </mrow>
      </mtd>
    </mtr>
  </mtable>
</math>

Then paste into Mozilla MathML tester: image

Assignee
Assign to
Time tracking