W3C home > Mailing lists > Public > www-style@w3.org > November 2010

Re: [css3-background] New use case for background-position-x (&y!)

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 8 Nov 2010 16:47:01 -0800
Message-Id: <59510AC0-2B03-4038-A2B0-003D1E584296@gmail.com>
Cc: Lee Kowalkowski <lee.kowalkowski@googlemail.com>, "www-style@w3.org" <www-style@w3.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>


On Nov 8, 2010, at 2:58 PM, "Tab Atkins Jr." <jackalmage@gmail.com> wrote:

> This is a hack because it has so many restrictions that a good
> solution wouldn't have.  It only works for background-position (I
> can't use it to deliver a bunch of small <img>s, frex).  It only works
> for similarly-sized images (spriting differently-sized things is
> pretty inefficient).  You can only use the 2d version of it if you're
> not repeating the images at all, and the 1d version of it if you're
> repeating in one direction only (a proper solution should allow you to
> repeat in either or both directions).

Right, besides that, it also means that you cannot have a flexibly sized box with a background-color that extends out beyond the edge of the image in a single element, you mostly can't use background-position in its "normal" way without revealing some part of an unrelated image (unless you add a bunch of blank space between each segment of the image), and you cannot use background-size in a meaningful way. 
Received on Tuesday, 9 November 2010 00:48:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:34 GMT