Hide redundant output in the MathML mode.

In the MathML mode, the SVG is always visible and for Gecko the MathML
output is visible too. This commit modifies ext.math.css to hide redundant
output for a given mathematical formula.

Change-Id: I5d48ec4f2a40246567b201e82444e61d408cb3b5
This commit is contained in:
Frédéric Wang 2014-06-11 13:45:16 +02:00
parent cbbf5453d1
commit a3015f6e79

View file

@ -6,16 +6,20 @@
Shows browser-dependent math output.
*/
.mwe-math-mathml-inline { display: none;}
.mwe-math-mathml-display { display: none ;}
.mwe-math-mathml-inline,
.mwe-math-mathml-display { display: none; }
.mwe-math-fallback-png-inline { display: inline; vertical-align: middle}
.mwe-math-fallback-png-display { display: block; margin-left: auto; margin-right: auto;}
.mwe-math-fallback-source-inline { display: inline; vertical-align: middle}
.mwe-math-fallback-source-display { display: block; margin-left: auto; margin-right: auto;}
@-moz-document url-prefix() {
.mwe-math-mathml-inline { display: inline !important; }
.mwe-math-mathml-display { display: block !important; margin:auto!important;}
span.mwe-math-mathml-inline { display: inline !important; }
span.mwe-math-mathml-display { display: block !important; margin: auto !important; }
span.mwe-math-mathml-inline + img.mwe-math-fallback-svg-inline,
span.mwe-math-mathml-display + img.mwe-math-fallback-svg-display,
img.mwe-math-fallback-svg-inline + img.mwe-math-fallback-png-inline,
img.mwe-math-fallback-svg-display + img.mwe-math-fallback-png-display { display: none !important; }
}
/* Set the fonts to use for the MathML rendering */