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

Re: CSS Hierarchies / Selector Nesting Proposal

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 2 Jun 2011 21:40:51 -0700
Message-ID: <BANLkTinxBAjDwJiBHahH2+CbLb=LEjtzPA@mail.gmail.com>
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, Brad Kemper <brad.kemper@gmail.com>, www-style@w3.org
On Thu, Jun 2, 2011 at 9:04 PM, Andrew Fedoniouk
<andrew.fedoniouk@live.com> wrote:
> -----Original Message-----
>>
>> From: Boris Zbarsky Sent: Thursday, June 02, 2011 9:09 AM To: Brad Kemper
>> Cc: www-style@w3.org Subject: Re: CSS Hierarchies / Selector Nesting
>> Proposal
>> On 6/2/11 11:48 AM, Brad Kemper wrote:
>>>
>>> OK, I see the issue now. By inserting the ampersand token, you are being
>>> more explicit with regard to space handing.
>>
>> Yeah, the use of ' ' as a combinator is sort of killing us here.  :(
>
> I suspect that backward compatibility is also the feature being killed.
>
> Consider this sample:
>
> <html>
> <style>
>  #one {
>   & #two { background:yellow; }
>   background:red;
>  }
> </style>
> <body>
>  <div id=one>test</div>
> </body>
> </html>

This was *explicitly* mentioned in my original email.  "However, it
degrades well in existing browsers if you put the nested rules below
all the properties in a rule."

~TJ
Received on Friday, 3 June 2011 04:41:38 GMT

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