Re: background-position-x & y

Zack Weinberg wrote:
> Faruk Ateş <faruk@apple.com> wrote:
>>
>> In lieu of backwards compatibility though, perhaps a sprite(…) value  
>> could instead be done as such:
>>
>> url( <path> [, <x1, x2, y1, y2>] );
> 
> You shouldn't introduce new stuff inside url(), everything from the u
> to the close parenthesis is *one token*, it'll be a nightmare to
> implement (it already is; it should never have been specified that way
> in the first place).

Agreed. sprite() is much preferable to extending url().

> How about  background-image: <url> <x> <y> <width> <height> ; 

No. a) That'd create parsing ambiguities in the background shorthand and
     b) It doesn't allow use of sprites for other things like list-style-image.

~fantasai

Received on Wednesday, 14 January 2009 20:42:11 UTC