Re: [selectors] Tree selectors and �tors

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 UTC