W3C home > Mailing lists > Public > www-style@w3.org > March 2005

Re: [selectors] Tree selectors and �tors

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Mon, 21 Mar 2005 15:42:39 +0100
Message-ID: <423EDD5F.2090903@annevankesteren.nl>
To: Laurens Holst <lholst@students.cs.uu.nl>
CC: www-style@w3.org

Laurens Holst wrote:
> :or(body, section, navigation):depth(3) h
> 
> Actually, :or has an even stronger use case here than :depth...

I wonder how :or fits in with existing pseudo-classes (selecting an 
element based on a particular conditation).


> :depth is pretty much already possible, although with limitations. You
> can write ul ul ul ul to target fourth-level (and deeper) unordered
> lists. It can be pretty compact even :), although it does of course not
> allow infinite nesting like depth does (but in reality, you never need
> that).

You don't?


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>
Received on Monday, 21 March 2005 14:42:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:36 GMT