W3C home > Mailing lists > Public > www-style@w3.org > June 2007

Re: [cssom] simple assignment involving !important

From: Zoffix Znet <zoffix@zoffix.com>
Date: Tue, 05 Jun 2007 08:56:41 -0400
To: Anne van Kesteren <annevk@opera.com>
Cc: Mats Palmgren <mats.palmgren@bredband.net>, www-style@w3.org
Message-Id: <1181048201.6744.75.camel@zoffix>

On Tue, 2007-05-06 at 14:33 +0200, Anne van Kesteren wrote:
> Testing shows that Internet Explorer 7 does not support it and Opera 9 and  
> Firefox 2 do... Given that .width is basically a shorthand for  
> setProperty("width", setted value, null) I suppose what Internet Explorer  
> 7 does is more logical. Except that it throws an exception. It seems more  
> natural to simply ignore the setting to maintain the forward compatible  
> parsing rules of CSS.
> 
> Also, "setted value" above has to be parsed per the "S* expr" grammar from  
> CSS 2.1 (or some superset of that if the browser supports more).
> 
> Would specifying something to that effect make sense? Probably indicating  
> that including !important would lead to the method call being ignored?

Either ignored or treated as without !important. I can't think of a
reason why specificity would matter in this case.
-- 
        Thank you for your time.
                Regards, Zoffix Znet
                ( http://zoffix.com , http://haslayout.net )
Received on Tuesday, 5 June 2007 12:56:59 GMT

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