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 22:13:45 -0700
Message-ID: <003d01c464aa$58030f70$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.
Received on Thursday, 8 July 2004 01:14:15 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:14 UTC