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

On Nov 8, 2010, at 2:58 PM, "Tab Atkins Jr." <> 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 UTC