W3C home > Mailing lists > Public > www-style@w3.org > January 2009

Re: background-position-x & y

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 14 Jan 2009 12:41:33 -0800
Message-ID: <496E4DFD.8010602@inkedblade.net>
To: Zack Weinberg <zweinberg@mozilla.com>
CC: Faruk Ateş <faruk@apple.com>, www-style@w3.org

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.

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:23 UTC