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

Re: Collapsing elements

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Thu, 21 Feb 2008 16:14:16 +0100
Message-ID: <47BD9548.4010505@disruptive-innovations.com>
To: Bert Bos <bert@w3.org>
Cc: www-style <www-style@w3.org>

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.

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

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