https://bugzilla.wikimedia.org/show_bug.cgi?id=66091

            Bug ID: 66091
           Summary: ResourceLoaderLESSFunctions::embed does not support
                    CSSJanus flipping for RTL
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ResourceLoader
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

The LESS embed function in ResourceLoaderLESSFunctions does not support using
the flipped version for rtl.

That means that if you use, for example, .background-image() (from
mediawiki.mixins.less) it will only use the flipped version for the fallback
(for browsers that don't support data URIs).

CSSJanus does not actually flip the image in this case.  It just uses a
filename ending in -rtl when the original filename ended in -ltr (see
https://www.mediawiki.org/wiki/ResourceLoader/Features#Flipping).  

This approach would require some refactoring of the CSSJanus class, so embed
could call it on a URL or filename.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to