W3C home > Mailing lists > Public > www-style@w3.org > June 2011

Re: CSS Hierarchies / Selector Nesting Proposal

From: Brad Kemper <brad.kemper@gmail.com>
Date: Thu, 2 Jun 2011 07:36:20 -0700
Cc: www-style list <www-style@w3.org>
Message-Id: <7AF89FEF-E3E3-4958-BEA4-EF39AFDB0F8E@gmail.com>
To: Tab Atkins Jr. <jackalmage@gmail.com>

On Jun 1, 2011, at 7:12 PM, Tab Atkins Jr. wrote:

> On the other hand, we are leaning towards only allowing selector lists in
> nested selectors via repeated insertion of the '&' character:
> 
> foo {
>  & bar, & far, &:hover {
>    prop: val;
>  }
> }

Why? It looks clear enough (and eminently parse-able) to me to do this:

foo {
 & bar, far, :hover {
   prop: val;
 }
}
Received on Thursday, 2 June 2011 14:36:50 GMT

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