Last modified: 2014-10-24 14:26:22 UTC
The MathML rendering mode seems to work with Google chrome mobile but not with Firefox. Firefox displays an broken image icon rather than the MathML rendering.
Created attachment 16703 [details] Rendering with Firefox
I just tested on an Android tablet: - when I use the "Desktop view" I correctly see the MathML - when I use the "mobile view", I see the PNG image. so I suspect that the "mobile view" has a different CSS style where ext.math.css is not loaded or incorrectly applied. The broken image is probably unrelated, perhaps it failed to load because of your internet connection or something.
(In reply to Frédéric Wang from comment #2) > The broken image is probably unrelated, perhaps it failed to load because of > your internet connection or something. So I expect that the broken PNG is fixed since you said that was an issue on production. Also, even if the stylesheet is not applied, the SVG image will be used as the default now. On math-preview I see the MathML, but also https://bugzilla.mozilla.org/show_bug.cgi?id=1002526
It seems to work now
Maybe we don't need to reinvent the weel. I asked on the discussion page if there is some documentation about extensions that reqly on custom css and js . https://www.mediawiki.org/wiki/Extension_talk:MobileFrontend#Compatibility_with_other_extensions_49501
Maybe we don't need to reinvent the wheel. I asked on the discussion page if there is some documentation about extensions that rely on custom css and js. https://www.mediawiki.org/wiki/Extension_talk:MobileFrontend#Compatibility_with_other_extensions_49501
Bug 45816 is almost a duplicate
(In reply to physikerwelt from comment #7) > Bug 45816 is almost a duplicate Well, I guess we want to mark bug 45816 as WONTFIX given that MathJax is too heavy, has too many files and some of them are not managed by the resource loader. It was very slow when I tested it (bug 45816 comment 10). For the MathML mode, I think what we can do to start with is: 1) Move the @font-face declaration from ext.math.css into a separate file. 2) Add the ext.math.css resource to the mobile version. This will be very small and without the big web font. 3) Do not add ext.math.js which is currently only used for browsers without SVG support and for MathPlayer.
OK. I think 1 is easy. We have to find someone who can fix 2 and 3 is already done;-)
(In reply to physikerwelt from comment #9) > OK. > > I think 1 is easy. We have to find someone who can fix 2 and 3 is already > done;-) Not tested yet: https://gerrit.wikimedia.org/r/#/c/167696/ IIUC, using the 'targets' property is enough to ask the stylesheet to load on mobile.
Created attachment 16879 [details] Firefox Android (with VS without Latin Modern Math) - Relations
Created attachment 16880 [details] Firefox Android (with VS without Latin Modern Math) - Radicals
Created attachment 16881 [details] Firefox Android (with VS without Latin Modern Math) - Mathvariants
Created attachment 16882 [details] Firefox Android (with VS without Latin Modern Math) - Integrals
Created attachment 16883 [details] Firefox Android (with VS without Latin Modern Math) - Horizontal Operators
The screenshots attached in comments 11 to 15 have been taken on Firefox for Android, when https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/ is enabled/disabled.