Last modified: 2014-10-27 05:53:24 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 T74165, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72165 - wrap math formulas in a div for easy styling
wrap math formulas in a div for easy styling
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 66679 (view as bug list)
Depends on: 71787 72229
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-17 00:13 UTC by Bahodir Mansurov
Modified: 2014-10-27 05:53 UTC (History)
6 users (show)

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


Attachments
screenshot Labelled_enumeration_theorem firefox windows small window (124.28 KB, image/png)
2014-10-18 12:33 UTC, physikerwelt
Details
there should be a horizontal scroll bar to allow me to see whole formula on https://en.m.wikipedia.org/wiki/Labelled_enumeration_theorem (186.56 KB, image/png)
2014-10-18 19:35 UTC, Jon
Details
missing formulae with ff mobile on Android (208.62 KB, image/png)
2014-10-19 01:15 UTC, physikerwelt
Details

Description Bahodir Mansurov 2014-10-17 00:13:20 UTC
Long formulas are creating horizontal scrollbars in small screens. If formulas are wrapped in a div with a certain class then we'd be able to style them accordingly. Please see this bug for extra information: https://bugzilla.wikimedia.org/show_bug.cgi?id=66679
Comment 1 physikerwelt 2014-10-18 12:27:47 UTC
Can you add a screenshot of the problem. For example http://math-preview.wmflabs.org/wiki/Main_Page
has a lot of formula and uses the most recent version of the Math extension.
Comment 2 physikerwelt 2014-10-18 12:33:02 UTC
Created attachment 16800 [details]
screenshot Labelled_enumeration_theorem firefox windows small window
Comment 3 physikerwelt 2014-10-18 12:34:34 UTC
*** Bug 66679 has been marked as a duplicate of this bug. ***
Comment 4 physikerwelt 2014-10-18 13:47:23 UTC
Probably this is the designated test page:
http://math-preview.wmflabs.org/wiki/Linebreaking

I see a challanging problem of formula linbreaking discussed here https://bugzilla.mozilla.org/show_bug.cgi?id=534962

But I think we can do nothing about it within the Math extension. 
I need to understand the bug description a little bit better:

>Long formulas are creating horizontal scrollbars in small screens.

Isn't that the expected behaiviour.

>If formulas are wrapped in a div with a certain class 

OK. Let's assume formulae that are now represented as

<span><span class="mwe-math-mathml-inline mwe-math-mathml-a11y" style="display: none;"><math xmlns="http://www.w3.org/1998/Math/MathML"> ... 
</math></span><meta class="mwe-math-fallback-image-inline" style="background-image: url ... />
</span>

would be wrapped in a div element with class=tex for example

>then we'd be able to style them accordingly.

How should they look like? If you'd scale them down they'd probably not be readable.
Comment 5 Jon 2014-10-18 19:35:15 UTC
Created attachment 16804 [details]
there should be a horizontal scroll bar to allow me to see whole formula on https://en.m.wikipedia.org/wiki/Labelled_enumeration_theorem
Comment 6 physikerwelt 2014-10-19 01:15:42 UTC
Created attachment 16805 [details]
missing formulae with ff mobile on Android
Comment 7 Frédéric Wang 2014-10-19 08:53:28 UTC
I guess the changes are due to the new <meta> tag with background.
Comment 8 Frédéric Wang 2014-10-19 08:56:10 UTC
For Firefox for Android, perhaps it's  a problem with missing math font (and use of LatinModernWOFF). What do you get with https://addons.mozilla.org/en-US/firefox/addon/mathml-fonts/?
Comment 9 physikerwelt 2014-10-19 15:01:43 UTC
In 72229 I added mobile support to math-preview. Now, we have a testing environment. At a first glance it looks like the new MathML mode does not work with any mobile browsers see the screenshot attached to 72229.
Since this seems much more fundamental we should figure out what's the reason for that before caring about the scroll bar.
Comment 10 physikerwelt 2014-10-19 15:10:07 UTC
It seems that all the custom css an js files defined in the resource loader of the math extension are not loaded.
Comment 11 Frédéric Wang 2014-10-19 15:18:53 UTC
(In reply to physikerwelt from comment #10)
> It seems that all the custom css an js files defined in the resource loader
> of the math extension are not loaded.

See my guess in bug 71787 comment 2.
Comment 12 Gabriel Wicke 2014-10-27 05:37:10 UTC
Is this still reproducible since the mobile fixes?
Comment 13 Jon 2014-10-27 05:53:24 UTC
mobile fixes were hacky and abandoned so yes :)

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


Navigation
Links