W3C home > Mailing lists > Public > www-style@w3.org > May 2013

Re: Any plans to add a feature for clipping background images?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 7 May 2013 09:24:38 -0700
Message-ID: <CAAWBYDC6oVXfHuJEaHewTsZYLNS9xsUmHC8UDyGNom7k1sQxUA@mail.gmail.com>
To: Behrang Saeedzadeh <behrangsa@gmail.com>
Cc: W3C CSS Mailing List <www-style@w3.org>
On Tue, May 7, 2013 at 9:22 AM, Behrang Saeedzadeh <behrangsa@gmail.com> wrote:
> So that a specific portion of a sprite image can be used with elements of
> any size?
>
> For example:
>
> background-image: url(sprite.png) top left width height;

See Media Fragments: <http://www.w3.org/TR/media-frags/>.  You'd
specify a url like "url(sprite.png#xywh=0,0,20,30)".

~TJ
Received on Tuesday, 7 May 2013 16:25:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:29 UTC