- 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
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