W3C home > Mailing lists > Public > public-css-testsuite@w3.org > June 2008

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 24 Jun 2008 12:43:29 -0700
Message-ID: <48614E61.9040307@inkedblade.net>
To: Robert Stam <robert@tallcomponents.com>
CC: public-css-testsuite@w3.org

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 20 September 2010 17:51:56 GMT