Remove vendor prefix support for SVG embedding
authorEd Sanders <esanders@wikimedia.org>
Tue, 17 Nov 2015 02:25:59 +0000 (18:25 -0800)
committerOri.livneh <ori@wikimedia.org>
Tue, 17 Nov 2015 02:40:05 +0000 (02:40 +0000)
Also remove the -o- prefix which uses 'fallback', as without
that rule it will use 'fallback' anyway.

Bug: T118815
Change-Id: I6a6e3b24b1cda55dfa9675743c39d21e792275c7

includes/resourceloader/ResourceLoaderImageModule.php

index 8fd94f7..73eb8a7 100644 (file)
@@ -371,9 +371,7 @@ class ResourceLoaderImageModule extends ResourceLoaderModule {
        protected function getCssDeclarations( $primary, $fallback ) {
                return array(
                        "background-image: url($fallback);",
-                       "background-image: -webkit-linear-gradient(transparent, transparent), url($primary);",
                        "background-image: linear-gradient(transparent, transparent), url($primary);",
-                       "background-image: -o-linear-gradient(transparent, transparent), url($fallback);",
                );
        }