[css3] Specifity of pseudo-rules and complete style sheet profile

The specifity syntax used for the 'style' attribute profile examples [1]
seems to be irritating, since 'a+=0 b+=0 c+=1' might be interpreted as
equivalent to 'a+=0 b+=0 c+=1 d+=0' (due to [2]) -- and which thus
(consequently, but misleadingly) seems to result in the following specifity
for the first example:

    a=0, b=0, c=1, d=0

which is (CMIIW) wrong since it's

    a=1, b=0, c=0, d=1

Nonetheless (if I'm correct or not), I propose to revise these specifity
examples and to use at least the 'a - d' notation, and it might be helpful
to add the /resulting/ specifity (which AFAIK must include 'a=1' for the
'style' attribute), too.


Best regards,
 Jens.


[1] http://www.w3.org/TR/css-style-attr#cascading
[2] http://www.w3.org/TR/CSS21/cascade.html#specificity


-- 
Jens Meiert
Interface Architect

http://meiert.com/

Received on Thursday, 15 April 2004 06:12:25 UTC