-----Original Message-----
From: wikitech-l-bounces(a)lists.wikimedia.org
[mailto:wikitech-l-bounces@lists.wikimedia.org] On Behalf Of
Trevor Parscal
Sent: 24 September 2009 19:38
To: wikitech-l(a)lists.wikimedia.org
Subject: Re: [Wikitech-l] JS2 design (was Re: Working towards
branchingMediaWiki 1.16)
On 9/24/09 9:31 AM, Jared Williams wrote:
> *
Automatically create CSS sprites?
>
>
That would be neat, but perhaps a bit tricky.
Just trying to think how it'd work.
Given a CSS selector, and an image, should be able to construct a
stylesheet which sets the background property of the css
rules and an
> single image.
>
> (#toolbar-copy, toolbar-copy.png)
> (#toolbar-copy:hover, toolbar-copy-hover.png)
>
> And the generated stylesheet would get concatenated with other
> stylesheets.
>
>
Again, I like sprites allot! But in reality, they
are an
optimization technique that needs careful attention and can
cause problems if done improperly.
Providing CSS sprite support would be (I guess) just a service for
modules/extensions to use, just as a part of the proposed client
resource manager(?). So the mediawiki or an extension can put in a
request for a some stylesheet or javascript be linked to, it could
also request for images possibly via CSS sprites.
So don't see how it should cause a problem.
Jared
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org