-
Notifications
You must be signed in to change notification settings - Fork 186
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 rendering issues in Firefox #396
Comments
The width of the table is wider than that of the enclosing div. Not sure where/how all that is calculated, though. |
MathJax has to create (un-line-breakable) tables from the underlying mtable elements. In this case, these tables are pretty huge. So I would consider this is a case of poor authoring; table layout is common in math layout, unfortunately, especially in content coming from LaTeX sources such as this epub file). Then again, the obvious authoring solution is to use Readium could try to set some CSS overflow on MathJax's container elements. eLife Lens has some code that implements scaling via CSS transforms if that's interesting. For some ongoing research on truly responsive equations see https://github.com/mathjax/MathJax-RespEq. |
@becka11y could you please test with the latest build from develop (MathJax 2.6): https://readium.firebaseapp.com Direct link to EPUB-Testsuite MathML chapter: |
FWIW I wouldn't expect 2.6 to cause any change here. It is not a MathJax
bug as far as I can tell.
|
Thanks for the clarification @pkra :) |
FWIW, on the current alpha, I don't see this issue anymore. I do see one kind of behavior that might be a glitch (or something very smart that I don't understand);it seems to affect both math and non-math but I only saw it for fragments with math so there might be a connection: sometimes, fragments shrink see below. |
Argh. Looking at the wrong browser -- I still see this on FF Sorry for causing confusion 😦 |
There are layout issues when rendering some pages containing MathML in Firefox. This seems to be related to tables but that is just a guess.
Open the Linear Algebra Book and select table of contents item Section SS Spanning Sets in Chapter 2. Advance one or two pages - note the tables often overlap in Firefox. Tested with Firefox 40.0.3 on OS X 10.10.5. Also happens with Firefox in Windows 7
Version info:
readium-js-viewer@8cc0a88c93d666b2d879095f4f09041168b3e189
readium-js@b50a498f270d58613d20ffe0de294d1ad8cfc405
readium-shared-js@8e0c0593d88a831f8a3418e1c631f76e9e75ec97
readium-cfi-js@c8a528d4858944878c1d47e0570f4ef2a547985d
Here is what it looks like for me after advancing two "pages" in from the mentioned ToC entry:
![ff_badmath](https://cloud.githubusercontent.com/assets/318987/9740854/ee269e2c-5624-11e5-8ce7-ab8fb6263a4f.png)
The text was updated successfully, but these errors were encountered: