Re: Collapsing elements

Bert Bos wrote:

> A pseudo-class represents a state. According to CSS, elements can be 
> active, visited, link, first-child, disabled, target, invalid, etc. I'm 
> adding one more: initial.
> 
> How do you currently query CSS states from Javascript? Can't you 
> generalize (one of) the existing methods to include ':initial' as well?
> 
> And there is actually nothing special about the LI. In my example the LI 
> *doesn't* have an ':initial' state. There may be any number of elements 
> whose states influence the style of the LI, because of cascading or 
> inheritance.


Riiiiigggghht. But this does not solve my problem here. You can't
query the :visited state from non-chrome JS for instance. Any CSS-based
solution for foldable tree-like rendering of elements w/o a JS way to
query the state is useless.

</Daniel>

Received on Thursday, 21 February 2008 15:14:32 UTC