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

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 UTC