W3C home > Mailing lists > Public > www-style@w3.org > May 2005

Re: ECMAScript in CSS aka "Expressions"

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 13 May 2005 15:17:36 -0500
Message-ID: <42850B60.2050505@mit.edu>
To: Ben Curtis <bcurtis@bivia.com>, www-style@w3.org

Ben Curtis wrote:
> 3. A visitor views a page, toggles the visibility on (script sets var 
> PrevDisplay = foo.style.display;), then off (script sets 
> foo.style.display = PrevDisplay; -- that is, "none")

Why doesn't the script do the sane thing and just _unset_ the value 
instead of setting it to the old value (which, as you point out, is not 
the same thing).  Sounds like a basic design bug in the script to me.

Note that I do think the idea you propose has some merit in general; 
it's just that this particular use case is not a good use case for it.

Received on Friday, 13 May 2005 20:17:48 UTC

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