W3C home > Mailing lists > Public > www-style@w3.org > February 2008

Re: [CSS21] visibility: collapse on non-table elements

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 14 Feb 2008 10:21:25 -0800
To: Andrew Fedoniouk <news@terrainformatica.com>
Cc: fantasai <fantasai.lists@inkedblade.net>, www-style@w3.org
Message-ID: <20080214182125.GA22279@ridley.dbaron.org>

On Thursday 2008-02-14 09:23 -0800, Andrew Fedoniouk wrote:
> Dynamic show/hide of elements. Used in many circumstances in scripts and in 
> static CSS declarations.

In what cases would this proposed feature be needed where
display:none is not sufficient?

> body[mode="bar"] .dependent
> {
>   display: ???; /* what to put here to show arbitrary element so to discard 
> display:none? */
> }

Put nothing at all; the rule with display:none doesn't match
anymore.

> var el = ...;
>     el.style.display = "none"; // to hide
>     el.style.display = "????"; // how exactly to define "show" ?

I use el.style.display="" quite often and it works fine for this.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 14 February 2008 18:21:43 GMT

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