Last modified: 2014-10-19 18:57: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 T37200, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35200 - <math> unreadable on high contrast theme
<math> unreadable on high contrast theme
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
unspecified
PC Windows 7
: Low normal with 1 vote (vote)
: ---
Assigned To: physikerwelt
: accessibility
Depends on: make-mathjax-default
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-13 15:21 UTC by Alex Cole
Modified: 2014-10-19 18:57 UTC (History)
8 users (show)

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


Attachments
Screenshot of unreadable maths on high contrast theme. (21.79 KB, image/png)
2012-03-13 15:21 UTC, Alex Cole
Details
MathML in high contrast (143.59 KB, image/png)
2014-10-19 18:47 UTC, physikerwelt
Details

Description Alex Cole 2012-03-13 15:21:14 UTC
Created attachment 10228 [details]
Screenshot of unreadable maths on high contrast theme.

When using a high contrast theme on Windows 7 (and maybe other OSs/versions), designed for visually impaired users, the output from "<math>" tags is almost unreadable.  This is on Firefox with "Menu->Tools->Options->Content->Fonts & Colours->Advanced->Allow pages to choose their own colours" disabled (and the same under the "Colours" button above the "Advanced" button, instead opting to use the default OS theme.

The theme in the OS is "High Contrast #1" - a default theme with yellow writing on a black background for better reading.  The issue seems to come from the PNGs used to render the maths formulas having transparency and assuming that the background is always white.  Attached is a screenshot of how these appear.  This seems more serious than normal issues with custom themes given that it is a default theme designed to improve accessibility and instead restricts it.
Comment 1 Dan Collins 2012-03-14 18:57:22 UTC
Confirmed on windows 7 with firefox. Not much we can do about it, those PNGs are rendered long before anybody knows what theme you're running, the only option would be to render a second yellow on black image based on preferences (ugh) or force the background to be white (no effect on most users, since it's already on a white background).
Comment 2 Brion Vibber 2012-03-14 22:49:10 UTC
Switching the default math rendering to MathJax should help with this; can you test this page?

http://leuksman.com/mw/index.php/Alpha_compositing
Comment 3 Dan Collins 2012-03-14 23:02:17 UTC
Brion, that link looks right in the high contrast theme. I was trying to find the render in browser option in live but it seems to have been (rightfully) killed, is this a new math system?
Comment 4 Mark A. Hershberger 2012-03-15 01:26:20 UTC
(In reply to comment #3)
> is this a new math system?

http://www.mathjax.org/
Comment 5 Helder 2012-03-15 13:42:21 UTC
You could try to automatically change the background color of the formulae using the script
http://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox&action=edit&oldid=478966050

which was suggested on enwiki's Village Pump:
http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)/Archive_97&oldid=481032812#I.27m_a_dark_background_kind-a-guy.3B_I_set_my_browser_to_ANYTHING_but_white_..._so_equations.2C_formulas.2C_practically_anything_notated_at_wiki_appearing_as_clear-backgrounded_image_is_absolutely_unintelligable

(In reply to comment #1)
> force the background to be white (no effect on most users, since it's
> already on a white background).

I think that would unfix bug 8.
Comment 6 Alex Cole 2012-03-19 15:55:04 UTC
That MathJax system seems to work here too.
Comment 7 physikerwelt 2014-10-19 18:47:21 UTC
Created attachment 16807 [details]
MathML in high contrast
Comment 8 physikerwelt 2014-10-19 18:47:47 UTC
The new MathML rendering mode seems to fix it.
Comment 9 Frédéric Wang 2014-10-19 18:57:22 UTC
(In reply to physikerwelt from comment #8)
> The new MathML rendering mode seems to fix it.

I think it would be a good idea to put a screenshot on http://math-preview.wmflabs.org/wiki/Main_Page#Demos

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


Navigation
Links