Last modified: 2014-10-24 14:26:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73787, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71787 - Test MathML mode on mobile devices
Test MathML mode on mobile devices
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 72165 65341
  Show dependency treegraph
 
Reported: 2014-10-08 09:49 UTC by physikerwelt
Modified: 2014-10-24 14:26 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Rendering with Firefox (126.00 KB, image/png)
2014-10-08 09:52 UTC, physikerwelt
Details
Firefox Android (with VS without Latin Modern Math) - Relations (502.96 KB, image/png)
2014-10-24 13:52 UTC, Frédéric Wang
Details
Firefox Android (with VS without Latin Modern Math) - Radicals (358.99 KB, image/png)
2014-10-24 13:53 UTC, Frédéric Wang
Details
Firefox Android (with VS without Latin Modern Math) - Mathvariants (385.38 KB, image/png)
2014-10-24 13:54 UTC, Frédéric Wang
Details
Firefox Android (with VS without Latin Modern Math) - Integrals (422.65 KB, image/png)
2014-10-24 13:54 UTC, Frédéric Wang
Details
Firefox Android (with VS without Latin Modern Math) - Horizontal Operators (385.83 KB, image/png)
2014-10-24 13:55 UTC, Frédéric Wang
Details

Description physikerwelt 2014-10-08 09:49:36 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.
Comment 1 physikerwelt 2014-10-08 09:52:12 UTC
Created attachment 16703 [details]
Rendering with Firefox
Comment 2 Frédéric Wang 2014-10-08 17:48:42 UTC
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.
Comment 3 Frédéric Wang 2014-10-11 16:24:48 UTC
(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
Comment 4 physikerwelt 2014-10-12 08:30:01 UTC
It seems to work now
Comment 5 physikerwelt 2014-10-19 15:25:18 UTC
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
Comment 6 physikerwelt 2014-10-19 15:25:57 UTC
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
Comment 7 physikerwelt 2014-10-19 22:28:01 UTC
Bug 45816 is almost a duplicate
Comment 8 Frédéric Wang 2014-10-20 06:38:38 UTC
(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.
Comment 9 physikerwelt 2014-10-20 06:48:24 UTC
OK.

I think 1 is easy. We have to find someone who can fix 2 and 3 is already done;-)
Comment 10 Frédéric Wang 2014-10-20 20:47:04 UTC
(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.
Comment 11 Frédéric Wang 2014-10-24 13:52:59 UTC
Created attachment 16879 [details]
Firefox Android (with VS without Latin Modern Math) - Relations
Comment 12 Frédéric Wang 2014-10-24 13:53:44 UTC
Created attachment 16880 [details]
Firefox Android (with VS without Latin Modern Math) - Radicals
Comment 13 Frédéric Wang 2014-10-24 13:54:07 UTC
Created attachment 16881 [details]
Firefox Android (with VS without Latin Modern Math) - Mathvariants
Comment 14 Frédéric Wang 2014-10-24 13:54:32 UTC
Created attachment 16882 [details]
Firefox Android (with VS without Latin Modern Math) - Integrals
Comment 15 Frédéric Wang 2014-10-24 13:55:02 UTC
Created attachment 16883 [details]
Firefox Android (with VS without Latin Modern Math) - Horizontal Operators
Comment 16 Frédéric Wang 2014-10-24 14:25:59 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links