Re: [CSS21] selector's specificity issues.

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 UTC