From f071dbcf80fb7213ef8033940ef7a4c0751c0392 Mon Sep 17 00:00:00 2001 From: Moritz Schubotz Date: Sun, 24 Apr 2016 12:53:08 -0400 Subject: [PATCH] Remove Firefox specific CSS styles The Firefox specific CSS changes require a special setup of math fonts on the system. To avoid problems OS dependent behavior, this browser specific modifications are removed from the ext.math.css file. There are a couple of places, where people can overwrite their CSS rules individually. For example from version 1.8 the plugin cf. https://github.com/fred-wang/Mathzilla/commit/de1eec2f0d8c1004e5613fe3bd90fcb0f4fdcd90 Note that this change will make things worse for users that chose the MathML rendering option and managed to configure their font setup right. Change-Id: I5a376904a01a46634eea2160e02736df74cd0b5f --- modules/ext.math.css | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/modules/ext.math.css b/modules/ext.math.css index 36e3452..634f4b9 100644 --- a/modules/ext.math.css +++ b/modules/ext.math.css @@ -38,26 +38,6 @@ generated by Mathoid. See https://gerrit.wikimedia.org/r/#/c/166213/ */ .mwe-math-fallback-source-inline { display: inline; vertical-align: middle; } .mwe-math-fallback-source-display { display: block; margin-left: auto; margin-right: auto; } -/** - * Browser-specific hacks are bad but let's use that for now... - * See http://browserhacks.com/ - */ -@-moz-document url-prefix() { - /* For Gecko browsers, hide the SVG fallback and show the MathML instead. - * We override the style for SVG and MathML above - */ - .mwe-math-mathml-a11y { - clip: auto; - overflow: visible; - position: static; - width: auto; - height: auto; - opacity: 1; - } - .mwe-math-mathml-inline + .mwe-math-fallback-image-inline, - .mwe-math-mathml-display + .mwe-math-fallback-image-display { display: none !important; } -} - /* PNG related styles from core */ img.tex { vertical-align: middle;