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

Re: [CSS21] selector's specificity issues.

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 8 Jul 2004 16:46:42 +0000 (UTC)
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.58.0407081644260.18162@dhalsim.dreamhost.com>

On Wed, 7 Jul 2004, Andrew Fedoniouk wrote:
>
> Algortihm described in [1] for counting style selector's specificity
> does not distinguish cases:
>
> "ul li" and "ul>li"
>
> Obviously second case is more strong/specific therefore it should have a
> bigger weight.

While this could have been the case, this is one of the few things in CSS2
that have been interoperably implemented for years, and therefore won't
change in CSS2.1.


> CSS grammar and lexical rules [2] do not define "*" asterisk (as an
> indentifier) at all.
> Or I am wrong here?
>
> Seems like it is impossible right now to say neither
> "ul >>img" nor "ul >*>img"

The first is certainly invalid. The second is valid, "*" is defined as
part of the "element_name" production.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 8 July 2004 12:46:43 GMT

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