W3C home > Mailing lists > Public > www-style@w3.org > March 2009

Re: setting css property to empty string from script

From: Giovanni Campagna <scampa.giovanni@gmail.com>
Date: Fri, 6 Mar 2009 18:59:03 +0100
Message-ID: <65307430903060959q6a84ddaav6a5611377716f8e4@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: Mike Wilson <mikewse@hotmail.com>, www-style list <www-style@w3.org>
2009/3/6 Boris Zbarsky <bzbarsky@mit.edu>:
> Mike Wilson wrote:
>> Is this behaviour specified by any standard, or is it just a
>> convention implemented by UAs?
> It looks like the latter.
> http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/css.html is the
> relevant spec, and it doesn't actually specify this behavior.  On the other
> hand, it doesn't really specify _any_ behavior for setProperty, if one looks
> carefully....  ;)

It also looks like that, according to future versions of CSSOM:

- If value is null or the empty string invoke removeProperty with
property as argument and abort this algorithm.


So, although it is not specified yet, it will be as soon as CSSOM is released.

> -Boris

Received on Friday, 6 March 2009 17:59:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:24 UTC