Remove `-webkit` vendor extension for browsers earlier than 2012
authorVolker E <volker.e@wikimedia.org>
Thu, 15 Mar 2018 04:19:34 +0000 (21:19 -0700)
committerVolker E <volker.e@wikimedia.org>
Thu, 15 Mar 2018 04:19:34 +0000 (21:19 -0700)
Removing `-webkit-gradient` value as it was just around for
Safari 4-5 and Chrome 2-9 both in released release range earlier
than 2012.
There's still the fallback color, which should be chosen wisely
anyways without cluttering our CSS output.

Change-Id: Iffb23fac44fc87cfb44f1056dfe1e4e1add444b4

resources/src/mediawiki.less/mediawiki.mixins.less

index 1218644..c64c761 100644 (file)
@@ -21,7 +21,6 @@
 
 .vertical-gradient( @startColor: gray, @endColor: white, @startPos: 0, @endPos: 100% ) {
        background-color: @endColor;
-       background-image: -webkit-gradient( linear, left top, left bottom, color-stop( @startPos, @startColor ), color-stop( @endPos, @endColor ) ); // Safari 4+, Chrome 2+
        background-image: -webkit-linear-gradient( top, @startColor @startPos, @endColor @endPos ); // Safari 5.1+, Chrome 10+
        background-image: -moz-linear-gradient( top, @startColor @startPos, @endColor @endPos ); // Firefox 3.6+
        background-image: linear-gradient( @startColor @startPos, @endColor @endPos ); // Standard