Page MenuHomePhabricator

Mathematical SVG images do not change colors based on user preferences
Open, MediumPublic

Description

Originally reported via OTRS: [[ticket:2015090210019503]]

If a user selects monobook, and turns on "black and green," the MathML equations are invisible as they are still rendered with black text.

Event Timeline

Matthewrbowker raised the priority of this task from to Low.
Matthewrbowker updated the task description. (Show Details)
Matthewrbowker added a project: Math.
Matthewrbowker added a subscriber: Matthewrbowker.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 2 2015, 5:34 PM

MathJax isn't installed in production, and hasn't been for a while. Also, I don't know what "black and green" is, but I'd guess it's a community gadget. Either way, I think this should be marked as Invalid.

fredw added a subscriber: fredw.Sep 2 2015, 5:47 PM

If you are talking about the "SVG fallback" of the MathML mode, then that is expected: different CSS properties are necessary to change the color of SVG paths. This does not happen in when "MathML" is really used since it just inherits the text colors.

Pkra added a subscriber: Pkra.Sep 2 2015, 6:36 PM
This comment was removed by Pkra.

Additional information from the user:

Works fine in Firefox (OSX) and Firefox (CentOS 6.5). Does not work in Chrome (OSX) and Safari (OSX).

Also, the Black on Green is a user gadget.

Matthewrbowker renamed this task from Mathjax is unable to change colors based on user preferences to MathML is unable to change colors based on user preferences.Sep 2 2015, 7:41 PM
Matthewrbowker updated the task description. (Show Details)
Matthewrbowker set Security to None.
This comment was removed by Physikerwelt.
Physikerwelt renamed this task from MathML is unable to change colors based on user preferences to Mathematical SVG images do not change colors based on user preferences.Nov 3 2015, 9:36 AM
Pkra moved this task from Incoming to SVG specific on the Math board.Dec 8 2018, 12:09 AM
Restricted Application added a project: User-Matthewrbowker. · View Herald TranscriptDec 8 2018, 12:09 AM
Pkra added a comment.Dec 10 2018, 8:52 PM

The snippet mentioned at https://phabricator.wikimedia.org/T195861#4734945 might be useful to users who want a workaround.

Matthewrbowker raised the priority of this task from Low to Medium.Mar 16 2019, 5:31 PM
Matthewrbowker moved this task from Inbox to Created on the User-Matthewrbowker board.