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

Closed
fred-wang opened this Issue May 11, 2012 · 9 comments

Comments

Projects
None yet
3 participants
@fred-wang
Contributor

fred-wang commented May 11, 2012

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

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Jul 1, 2012

Contributor

Configuration/HTML-CSS/scale-1.html

Contributor

fred-wang commented Jul 1, 2012

Configuration/HTML-CSS/scale-1.html

@ghost ghost assigned dpvc Aug 13, 2012

dpvc pushed a commit to dpvc/MathJax that referenced this issue Aug 15, 2012

@dpvc

This comment has been minimized.

Show comment
Hide comment
@dpvc

dpvc Aug 15, 2012

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).

Member

dpvc commented Aug 15, 2012

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

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Aug 16, 2012

Contributor

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

Contributor

fred-wang commented Aug 16, 2012

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

This comment has been minimized.

Show comment
Hide comment
@dpvc

dpvc Aug 16, 2012

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.

Member

dpvc commented Aug 16, 2012

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

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Aug 16, 2012

Contributor

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.

Contributor

fred-wang commented Aug 16, 2012

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

This comment has been minimized.

Show comment
Hide comment
@fred-wang

fred-wang Aug 16, 2012

Contributor

=> Ready for release

Contributor

fred-wang commented Aug 16, 2012

=> Ready for release

@dpvc dpvc closed this Nov 1, 2012

@pkra

This comment has been minimized.

Show comment
Hide comment
@pkra

pkra Mar 8, 2013

Member

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

Member

pkra commented Mar 8, 2013

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

@dpvc

This comment has been minimized.

Show comment
Hide comment
@dpvc

dpvc Mar 8, 2013

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.

Member

dpvc commented Mar 8, 2013

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

This comment has been minimized.

Show comment
Hide comment
@pkra

pkra Mar 8, 2013

Member

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

Member

pkra commented Mar 8, 2013

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