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

Re: [selectors] Tree selectors

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 21 Mar 2005 11:16:08 +0000 (UTC)
To: Anne van Kesteren <fora@annevankesteren.nl>
Cc: W3C CSS List <www-style@w3.org>
Message-ID: <Pine.LNX.4.61.0503211113572.1818@dhalsim.dreamhost.com>

On Mon, 21 Mar 2005, Anne van Kesteren wrote:
> 
> ... I think some :depth(arg) pseudo-class or other method should be 
> designed to have similar options for trees.

This has been suggested before, but no solid proposal has been suggested 
yet. The problems lie in deciding where the counting should start, so as 
to correctly handle things like:

   <ul>
    <li>
     <ul>
      <li>
       <div>
        <ul>
         <li>

...or:

   <section>
    <h/>
    <section>
     <h/>
     <section>
      <h/>
      <section>
       <div>
        <h/>
       </div>

Proposals welcome.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 21 March 2005 11:16:11 GMT

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