MathJax_Font_Test reset for min/max width

55 views
Skip to first unread message

ja...@jamiejefferson.com

unread,
Jul 9, 2013, 7:24:10 AM7/9/13
to mathja...@googlegroups.com
I'm working on an ebook product which has a very basic HTML structure - essentially all content elements (mostly <p>) are immediate children of <body>. I've centered this content with the following CSS:

body > * {
    min-width: 300px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}


Since the font test <div> is added as an immediate child of <body>, this CSS prevents the font detection from working. It was a bit fiddly to track down, as the only 'errors' I could detect were that STIX fonts would always be skipped, and there was a delay in loading the web-fonts. It would stick on "Loading web-font TeX/Main/Regular" for maybe 8 seconds, then show "Can't load web-font TeX/Main/Regular", however it would then seem to render using "MathJax_Main" anyway.

Once I figured it out, normal behaviour for font detection/loading was restored by adding:

#MathJax_Font_Test {
    min-width: 0;
    max-width: none;
}


My thought is that it might be worth adding min/max width resets to MathJax itself since the font detection depends on the width of #MathJax_Font_Test, yet it was so easy for me to unwittingly break it.

Peter Krautzberger

unread,
Jul 18, 2013, 1:38:02 PM7/18/13
to mathja...@googlegroups.com
Oops, sorry this has been unanswered. Yeah, this sounds like a bug -- I've moved it to the bug tracker at  https://github.com/mathjax/MathJax/issues/517

Thanks for tracking this down!

Peter.



--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages