From: Volker E Date: Fri, 22 Sep 2017 20:30:19 +0000 (-0700) Subject: SpecialSearch: Fix unintended `margin` when zoom level is above 100% X-Git-Tag: 1.31.0-rc.0~1985 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=2582641fcfa2f5ead7697ae32d417327f4a8362f SpecialSearch: Fix unintended `margin` when zoom level is above 100% With zoom level > 100% on Firefox, `#mw-searchoptions` which is a `fieldset` element adds unintended `margin` with negative `margin-top` applied. This is a workaround for wrong browser behaviour and regression of I4bda42c03a5. Bug: T176499 Change-Id: I329f83e6063460dc11ff45583e335280c9257ef7 --- diff --git a/resources/src/mediawiki.special/mediawiki.special.search.styles.css b/resources/src/mediawiki.special/mediawiki.special.search.styles.css index b37cf2f8f3..ea9b987d37 100644 --- a/resources/src/mediawiki.special/mediawiki.special.search.styles.css +++ b/resources/src/mediawiki.special/mediawiki.special.search.styles.css @@ -94,6 +94,8 @@ /*==========================*/ #mw-searchoptions { + /* Support: Firefox, needs `clear: both` on `fieldset` when zoom level > 100%, see T176499 */ + clear: both; padding: 0.5em 0.75em 0.75em 0.75em; background-color: #f8f9fa; margin: -1px 0 0;