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

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

From: Lee Kowalkowski <lee.kowalkowski@googlemail.com>
Date: Thu, 11 Nov 2010 00:07:00 +0000
Message-ID: <AANLkTi=F98Dys4HxzgOTNcAaGkSBifwC8AxvNyW9W6MR@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: Brad Kemper <brad.kemper@gmail.com>, Markus Ernst <derernst@gmx.ch>, "www-style@w3.org" <www-style@w3.org>
On 10 November 2010 23:52, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>> 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.

Thanks, is that what && means?  I'm not really familiar with that in
this context:

  [ center | [ left | right ] [ <percentage> | <length> ]? ] &&
  [ center | [ top | bottom ] [ <percentage> | <length> ]? ]

I thought it just meant you must provide both.

So what happens if one uses "left 10px left 10px"?  Is that what the
&& prevents?

-- 
Lee
www.webdeavour.co.uk
Received on Thursday, 11 November 2010 00:07:34 GMT

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