Re: test t060402-c31-important-00-b

Robert Stam wrote:
> Hi,
> 
> I believe in CSS level 2.1 test t060402-c31-important-00-b should
> display 2 green lines and than the third line red.
> Because the specificity for the style= is 1,0,0,0 so will be more
> important (even above the important from the styles from the style
> block)  
> 
> How do you think about this?

Actually, the p { color: green !important; } rule wins. It is less
specific, but it has more weight. See
   http://www.w3.org/TR/CSS21/cascade.html#cascading-order

~fantasai

Received on Tuesday, 24 June 2008 19:44:06 UTC