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
Received on Monday, 21 March 2005 14:42:51 UTC

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