W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: Parent Combinator / Parent pseudo-class

From: Francois Remy <fremycompany_pub@yahoo.fr>
Date: Fri, 25 Jul 2008 17:20:23 +0200
Message-ID: <8FC3DC7008224F15B06AF38341281300@FremyCompany1>
To: "Brad Kemper" <brkemper@comcast.net>, "Andrew Fedoniouk" <news@terrainformatica.com>
Cc: "Boris Zbarsky" <bzbarsky@MIT.EDU>, "www-style list" <www-style@w3.org>

From: "Brad Kemper" <brkemper@comcast.net>
> 
> 
> On Jul 24, 2008, at 10:01 PM, Andrew Fedoniouk wrote:
> 
>> Second:
>>
>> Consider these two selectors:
>>
>> p
>>  {
>>    border: none;
>>  }
>>
>> html:with-child(a:hover) p
>>  {
>>    border: 2em;
>>  }
>>
>> and markup:
>>
>> <html>
>>  <p><a href="*">sample</a></p>
>> </html>
> 
> As far as I can tell, nothing would happen there, because the HTML  
> element does not have an anchor ("A" element) as a child. It only has  
> one as a descendant, and I thought "with-child" referred to immediate  
> children only, not grandchildren.

No with-child refers to grandchildren too.
But it's possible that the name is bad choosen.

Fremy 
Received on Friday, 25 July 2008 15:34:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:10 GMT