- From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
- Date: Thu, 21 Feb 2008 11:10:03 +0100
- To: Bert Bos <bert@w3.org>
- Cc: www-style <www-style@w3.org>
Bert Bos wrote:
> Another example:
>
> div:initial * {display: none}
> div:initial h2 {display: block}
>
> ...
> <div>
> <h2>Heading of this section</h2>
> <p>First paragraph...
> ...
> </div>
Right, that works for LI and sub-lists. But how do you
query from JS the state of such a list item, expanded or
collapsed ? Checking the computed value of the display
property on all children of that LI is not a workable
solution.
We need to be able to query 'something' directly from the LI.
That means a solution based uniquely on the display property
of the children is not enough. We need an attribute on the LI
or a unique CSS property setting the expanded/folded status
of the item.
</Daniel>
Received on Thursday, 21 February 2008 10:10:30 UTC