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

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|Unprioritized               |Normal
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
            Summary|RL's Data URI embedding     |ResourceLoader: @embed
                   |(aka /* @embed */) doesn't  |doesn't work on user or
                   |work on user or site CSS    |site CSS

--- Comment #1 from Krinkle <[email protected]> 2012-10-08 04:49:06 UTC ---
It only works for files stored on disk, not for URLs. This is because it needs
to be able to invalidate cache when the file is changed, and there is a limit
to the file size allowed in embeds.

One could open a feature request to support URLs in the future, but at this
time this is not a bug and it is not related to user/site scripts (embedding
files from a URI isn't supported from core modules either).

Of course for core modules all icons are on disk, as there is no reason to use
them from a URL. And from user/site scripts there is no way to select a file
from disk, because that can only be done from a relative path, and for a wiki
page script, there is no relative path because it is a page, not a real css/js
file.

I believe there is an open ticket to request support for referencing wiki files
from wiki scripts, something like:

 background-image: url([[File:Example.svg|22px]]);

 background-image: url(mw-file://Example.svg/22px);

 background-image: -mw-file(Example.svg, 22px);

But that's something else entirely.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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