diff --git a/modules/ext.math.css b/modules/ext.math.css index 7098b2d..3ce4731 100644 --- a/modules/ext.math.css +++ b/modules/ext.math.css @@ -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 */