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

[CSS21] selector's specificity issues.

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Wed, 7 Jul 2004 21:02:55 -0700
Message-ID: <001f01c464a0$7323fda0$0401a8c0@ATHLON>
To: <www-style@w3.org>

#1 -----------------------------------------------------------------

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.

I am not sure though so will be glad to hear any comments.

#2 -----------------------------------------------------------------

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"

==============================================
[1] http://www.w3.org/TR/CSS21/cascade.html#specificity
[2] http://www.w3.org/TR/CSS21/grammar.html#q1


Andrew Fedoniouk.
http://terrainformatica.com
Received on Thursday, 8 July 2004 00:02:56 GMT

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