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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 10 Nov 2010 15:52:07 -0800
Message-ID: <AANLkTikVKB6MXY=VYMMV81eZcTWZBdnyh_gTg-AtvOrV@mail.gmail.com>
To: Lee Kowalkowski <lee.kowalkowski@googlemail.com>
Cc: Brad Kemper <brad.kemper@gmail.com>, Markus Ernst <derernst@gmx.ch>, "www-style@w3.org" <www-style@w3.org>
On Wed, Nov 10, 2010 at 3:51 PM, Lee Kowalkowski
<lee.kowalkowski@googlemail.com> wrote:
> On 10 November 2010 23:23, Brad Kemper <brad.kemper@gmail.com> wrote:
>> On Nov 10, 2010, at 8:35 AM, "Markus Ernst" <derernst@gmx.ch> wrote:
>>> I do not know whether there are explicit use cases for this, but the
>>> background-position property as a shorthand is not really intuitive; I
>>> myself have to check a manual every time I need this property, because I
>>> always forget the order of the values. So, for some authors, separate
>>> properties would make a little thing a little bit easier.
>>
>> I'm more sympathetic to this line of thought, as I also have to pause to
>> think which dimension comes first (it's the opposite of when you specify two
>> length for, say, margin). However, I think this has already improved a lot
>> in the latest spec, because now you can be very explicit about the edge to
>> measure from. For instance:
>>
>> background-position: left 10px top 15px;
>
> But unless I misread the specification, you still have to remember the
> order to do this.  I mean, is "top 15px left 10px" allowed?

Yes.  That's the whole reason for tagging it with a side keyword -
there's no need for a specific order, because it's unambiguous.

~TJ
Received on Wednesday, 10 November 2010 23:53:00 GMT

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