Bartosz Dziewoński has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/199127

Change subject: ResourceLoaderImageModule: Synchronize CSS with 
.background-image-svg LESS mixin
......................................................................

ResourceLoaderImageModule: Synchronize CSS with .background-image-svg LESS mixin

Bug: T87504
Change-Id: I790bd953fabbd4ff03f15c94fe101e2f65891520
---
M includes/resourceloader/ResourceLoaderImageModule.php
1 file changed, 8 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/27/199127/1

diff --git a/includes/resourceloader/ResourceLoaderImageModule.php 
b/includes/resourceloader/ResourceLoaderImageModule.php
index 8fbe497..5be4419 100644
--- a/includes/resourceloader/ResourceLoaderImageModule.php
+++ b/includes/resourceloader/ResourceLoaderImageModule.php
@@ -264,18 +264,23 @@
        }
 
        /**
+        * SVG support using a transparent gradient to guarantee cross-browser
+        * compatibility (browsers able to understand gradient syntax support 
also SVG).
+        * 
http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique
+        *
+        * Keep synchronized with the .background-image-svg LESS mixin in
+        * /resources/src/mediawiki.less/mediawiki.mixins.less.
+        *
         * @param string $primary Primary URI
         * @param string $fallback Fallback URI
         * @return string[] CSS declarations to use given URIs as 
background-image
         */
        protected function getCssDeclarations( $primary, $fallback ) {
-               // SVG support using a transparent gradient to guarantee 
cross-browser
-               // compatibility (browsers able to understand gradient syntax 
support also SVG).
-               // 
http://pauginer.tumblr.com/post/36614680636/invisible-gradient-technique
                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);",
                );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/199127
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I790bd953fabbd4ff03f15c94fe101e2f65891520
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to