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

Re: [cssom] simple assignment involving !important

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 05 Jun 2007 11:11:15 -0500
Message-ID: <46658B23.3040903@mit.edu>
To: Anne van Kesteren <annevk@opera.com>
CC: www-style@w3.org

Anne van Kesteren wrote:
> Testing shows that Internet Explorer 7 does not support it and Opera 9 
> and Firefox 2 do...

Along similar lines...  Firefox (more or less by accident) also supports:

   foo.style.width = "5em ;"
   foo.style.width = "5em }"

I'd say that we want to treat those as syntax errors too and discard the sets...

> Given that .width is basically a shorthand for 
> setProperty("width", setted value, null)

I suspect that setProperty() also has issues at least in Firefox, e.g. if one does:

   setProperty("width", "5em; height: 2em", "important");

I bet the width comes out 5em....

Received on Tuesday, 5 June 2007 16:12:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:29 UTC