Skip to content

Loading…

reftest failure Configuration/HTML-CSS/scale-1.html in SVG ouput mode #244

Closed
fred-wang opened this Issue · 9 comments

3 participants

@fred-wang

I think I already reported this somewhere, but let's put it in the tracker:

The red rectangle in

http://devel.mathjax.org/testing/testsuite/Configuration/HTML-CSS/scale-1.html?&mathJaxPath=http://devel.mathjax.org/testing/mathjax/dpvc/v2.0-patches/&font=TeX&outputJax=SVG

should be scaled to fit in the grey frame. It does in HTML-CSS mode but not in SVG mode.

@fred-wang

Configuration/HTML-CSS/scale-1.html

@dpvc dpvc was assigned
@dpvc dpvc added a commit to dpvc/MathJax that referenced this issue
@dpvc dpvc Properly handle the scale configuration parameter. (Resolves issue #244
….)
888140d
@dpvc
MathJax member

The issue244 branch of my fork of MathJax should resolve the problem (there was a typo in the location where the configuration's scale factor was being used).

@fred-wang

I see that it is fixed for Chrome, Opera and IE. As for Firefox, the red rectangle still does not fit exactly in the gray frame (tested on Linux, my local machine and the EC2 machine).

http://devel.mathjax.org/testing/testsuite/Configuration/HTML-CSS/scale-1.html?&mathJaxPath=http://devel.mathjax.org/testing/mathjax/dpvc/issue244/&font=TeX&outputJax=SVG

I guess it is a rounding error (zooming in/out change a bit the situation), so I should make the gray frame a bit thicker again.

http://devel.mathjax.org/testing/mathjax/fred-wang/screenshots/issue244.png

@dpvc
MathJax member

Hmmm. It works fine for me in Firefox 13 on Mac OS X (the original version, in case you have changed it already). Not sure why it isn't for you.

@fred-wang

I'm testing with Firefox 14, but I doubt that's the problem. The result seems to depend on zoom level, so I guess also font size etc. I'll just increase a bit the size of the gray rectangle.

@fred-wang

=> Ready for release

@dpvc dpvc closed this
@pkra
MathJax member

I think we have to re-open this issue. Here's an example that still fails?

@dpvc
MathJax member

He has set the font size for SVG elements explicitly in his CSS, which is preventing the scaling that MathJax attempts to do. I guess we could add font-size: inherit to the MathJax SVG element CSS to override that.

@pkra
MathJax member

Ok. Since these are reveal.js slides, the user probably doesn't know this :) I'll post a reply on the user group.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.