From a3015f6e79e7439d7dfb86153be54f6f36a2d2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Wed, 11 Jun 2014 13:45:16 +0200 Subject: [PATCH] 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 --- modules/ext.math.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/ext.math.css b/modules/ext.math.css index 7098b2df1..3ce473196 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 */