Adam confirms that I read the spec correctly; just we're sad about what the W3C rules end up meaning.  

Begin forwarded message:

From: Benjamin Shine <[EMAIL PROTECTED]>
Date: August 15, 2006 5:56:27 PM PDT

According to the CSS rules of specificity, a selector of 
#gJoeSr person 
has specificity = 0,1,1,0, and is more specific than a selector of 
#gJFK
which only has specificity 0,1,0,0. 

To get the desired results -- where the #gJFK rule wins -- I have to do this
#gJoeSr #gJFK
which has specificity 0,2,00. 

This troubles me. Intuitively I want #gJFK to be more specific than "any person who is a descendant of Joe Sr." 

Am I missing something here?

BTW, 
person #gJFK 
will have the same specificity (0,1,1,0) as 
#gJoeSr person (0,1,1,0)
so according to the rules in sec 6.4.1, the order in which they're declared would matter. 











_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to