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

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

From: Jens Meiert <jens.meiert@erde3.com>
Date: Thu, 15 Apr 2004 12:07:16 +0200 (MEST)
To: "W3C CSS" <www-style@w3.org>
Message-ID: <15240.1082023636@www58.gmx.net>

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 GMT

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