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

Re: Specificity of :any (was Re: [css3-selectors] Grouping)

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 26 Feb 2010 08:01:13 +0800
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style list <www-style@w3.org>
Message-Id: <7DC75EF6-5EFE-45FF-90B2-2C7D42C5AF4E@gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>

On Feb 26, 2010, at 7:58 AM, Brad Kemper wrote:

> On Feb 26, 2010, at 6:58 AM, Boris Zbarsky wrote:
> 
>> At least in Gecko's case, what you wrote above would indeed be more or less just syntax sugar.  But this:
>> 
>> :any(#authors, #publications) div
>> 
>> would probably be faster to match than:
>> 
>> #authors div, #publications div
>> 
>> In fact, we're looking into implementing this right now (as :-moz-any()) to more efficiently deal with the numerous rules of this form that appear in our UA stylesheet.
> 
> So you're not worried about people using this as a UA-selecting hack?
> 
> body { rules for most UAs' body tag }
> :any(html) body { rules for this version of firefox or higher's body tag }

Sorry. Meant to write this:

body { rules for most UAs' body tag }
:-moz-any(html) body { rules for this version of firefox or higher's body tag }
Received on Friday, 26 February 2010 00:01:52 GMT

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