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

Re: [css3-selectors] Grouping

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 9 Jan 2010 16:56:49 -0800
Message-Id: <815A380C-7455-4A2F-A50F-684E249AC8FD@gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: François REMY <fremycompany_pub@yahoo.fr>, fantasai <fantasai.lists@inkedblade.net>, Nikita Popov <privat@ni-po.com>, news <news@terrainformatica.com>, www-style list <www-style@w3.org>


On Jan 9, 2010, at 3:55 PM, "Tab Atkins Jr." <jackalmage@gmail.com>  
wrote:

>> So, for instance, to "select a P tag that contains an element  
>> matching 'a:hover' in it", you would add a space after the p:
>>
>> p :matches(a:hover)
>
> No, that selects something different.
>
> p :matches(a:hover)
> is equivalent to
> p a:hover

How is that different? The 'a' is an element inside the 'p' element.  
What you wrote (with the space) is the same as what was described in  
the prose. 
Received on Sunday, 10 January 2010 00:57:29 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:42 UTC