Page MenuHomePhabricator

No MathML rendering in Firefox - SVG or PNG is used
Closed, DeclinedPublic

Description

In the past, math was rendered as MathML. Even though I have "MathML with SVG or PNG fallback" selected in the preferences, I usually get SVG, but also got PNG at least on https://en.wikipedia.org/wiki/Fürer's_algorithm (a reload magically switched it to SVG), never MathML. Same problem with: https://test2.wikipedia.org/wiki/Mathematics

My web browser is Firefox 45.4.0 under Linux. MathML works on other web sites, such as Mozilla's MathML Torture Test page.

A quick test with Opera 40 showed the same problem.

Event Timeline

vinc17 created this task.Oct 4 2016, 2:43 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 4 2016, 2:43 PM

I get SVGs displayed in the first link in Firefox 49 on Linux.
https://en.wikipedia.org/wiki/Special:Preferences#mw-prefsection-rendering says "MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools)"

Yes. Currently additional steps are required to get MathML https://www.mediawiki.org/wiki/Extension:Math#Viewing_math
However, I think we should enable MathML without plugin (at least for some known good browser / OS combinations).
@fredw What are your thoughts on that?

Le 13/10/2016 à 11:58, Physikerwelt a écrit :

However, I think we should enable MathML without plugin (at least for some known
good browser / OS combinations).
@fredw https://phabricator.wikimedia.org/p/fredw/ What are your thoughts on that?

I don't think things have changed much since the last time you asked.
This will require coordination between various actors, so we should
probably discuss that in the MathML association.

Physikerwelt closed this task as Declined.Jun 25 2018, 8:50 AM

Since I don't see progress here and do not have any contacts to Mozilla to talk about this goal I'm closing this ticket. In case anyone from Mozilla finds this ticket via a web search engine here a short summary of our request:

Currently, MediaWiki delivers HTML output for mathematical formulae, of the following form:

<div>
  <div class="mathml" style="display: none;">
      <math>
          <mrow>
              <mi>E</mi>
              <mo>=</mo>
              <mi>m</mi>
              <msup>
                  <mi>c</mi>
                  <mn>2</mn>
              </msup>
          </mrow>
      </math>
  </div>
  <img class="math-fallback-image" src="Emc2.svg"/>
</div>

Also, there is a plugin for Firefox (developed by Fédéric Wang) that overwrites the display attribute of the MathML class and math-fallback-image class so that MathML is shown and img the img is hidden. This plugin is installed by about 1500 people and works quite well. However, as a next step, we plan to display MathML to all Firefox users by custom css rules. However, before doing so, it would be good to know what problems can be expected.

@Physikerwelt: What exactly is wanted from Mozilla/Firefox? Is this about

basically, or something else?

Looking at these bugzilla tickets gives the impression that not very much has happened recently. I have no idea what would happen if we changed the CSS to display MathML for all Firefox users. People who install the plugin to show MathML are probably not a representative sample. Thus, I have the feeling that it would be good to have someone from Mozilla involved if did this. Otherwise, we might be ending up in a situation, with bug reports regarding the Firefox MathML rendering that nobody will be able to handle.

I see... should the task summary somehow (?) mention Mozilla Firefox (because if I get it right this task seems to be pretty much about Firefox now)?

Physikerwelt renamed this task from No MathML rendering - SVG or PNG is used to No MathML rendering in Firefox - SVG or PNG is used.Jun 25 2018, 3:06 PM