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

Re: Enhancing grouping of selectors

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 17 Sep 2010 16:15:14 -0700
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style@w3.org
Message-ID: <20100917231514.GA26513@pickering.dbaron.org>
On Friday 2010-09-17 15:18 -0700, Tab Atkins Jr. wrote:
> I think the sanest solution is to use the min or max specifity of the
> contained argument, so either 003 or 300.  Probably the latter.

I think the best solution for authors is to compute specificity
based on which selectors actually matched (and use the highest).

That's just a little more work to implement, not because it's
inherently more difficult than the current model, but rather because
it requires more change to existing implementations in which
specificity of selectors is computed before selector matching.


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Friday, 17 September 2010 23:15:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC