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

Please remove some NativeMML hacks for Firefox #813

Closed
fred-wang opened this issue May 10, 2014 · 5 comments

Comments

Projects
None yet
3 participants
@fred-wang
Copy link
Contributor

commented May 10, 2014

The following hacks should be removed in Firefox >= 29 but they still seem to be enabled in the develop branch:

nMML.forceReflow
nMML.widthBug
MML.mtdWidthBug

https://github.com/mathjax/MathJax/blob/develop/unpacked/jax/output/NativeMML/jax.js#L1310

@fred-wang

This comment has been minimized.

Copy link
Contributor Author

commented May 14, 2014

The style for the standard mathvariant attributes should also be removed:
https://github.com/mathjax/MathJax/blob/develop/unpacked/jax/output/NativeMML/jax.js#L857

@dpvc dpvc added this to the Bugfix Version milestone May 22, 2014

dpvc pushed a commit to dpvc/MathJax that referenced this issue May 28, 2014

@dpvc dpvc added Accepted labels May 28, 2014

dpvc pushed a commit to dpvc/MathJax that referenced this issue May 29, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented May 29, 2014

=> Merged.

@dpvc dpvc added Merged and removed Ready for Review labels May 29, 2014

@dpvc dpvc closed this May 29, 2014

@dpvc

This comment has been minimized.

Copy link
Member

commented Jun 12, 2014

It turns out that the widths of mtd elements still isn't correct, so I've gone back to nMML.mtdWidthBug = true. See for example

<!DOCTYPE html>
<html>
<head>
<title>FF mtd width problems</title>
</head>
<body>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mtable mathbackground="red" displaystyle="true">
  <mtr>
    <mtd mathbackground="green" style="padding:0px">
      <mi mathvariant="normal">&#x2207;</mi>
      <mo>&#xD7;</mo>
      <mover>
        <mi mathvariant="bold">E</mi>
        <mo stretchy="false">&#x2192;</mo>
      </mover>
      <mspace width="thinmathspace" />
      <mo>+</mo>
      <mspace width="thinmathspace" />
      <mfrac>
        <mn>1</mn>
        <mi>c</mi>
      </mfrac>
      <mspace width="thinmathspace" />
      <mfrac>
        <mrow>
          <mi mathvariant="normal">&#x2202;</mi>
          <mover>
            <mi mathvariant="bold">B</mi>
            <mo stretchy="false">&#x2192;</mo>
          </mover>
        </mrow>
        <mrow>
          <mi mathvariant="normal">&#x2202;</mi>
          <mi>t</mi>
        </mrow>
      </mfrac>
    </mtd>
    <mtd style="padding:0px">
      <mo>=</mo>
      <mfrac>
        <mrow>
          <mn>4</mn>
          <mi>&#x3C0;</mi>
        </mrow>
        <mi>c</mi>
      </mfrac>
      <mover>
        <mi mathvariant="bold">j</mi>
        <mo stretchy="false">&#x2192;</mo>
      </mover>
    </mtd>
  </mtr>
</mtable>
</math>
</body>
</html>

(which doesn't involve MathJax at all). The two cells both extend beyond their right margins, and the table extends beyond the width of the math element. This is the result for me

ff-width-bug

when viewed in FF 29.0.1 on Mac OS X.

@dpvc

This comment has been minimized.

Copy link
Member

commented Jun 12, 2014

I just checked FF 30.0 and it produces the same results.

@pkra

This comment has been minimized.

Copy link
Member

commented Jun 12, 2014

Too bad. Let's hope we can do it in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.