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

Re: [selectors] Tree selectors

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 22 Mar 2005 00:33:54 +0000 (UTC)
To: Mats Palmgren <mats.palmgren@bredband.net>
Cc: BachusII <BachusII@planet.nl>, Anne van Kesteren <fora@annevankesteren.nl>, W3C CSS List <www-style@w3.org>
Message-ID: <Pine.LNX.4.61.0503220033380.17833@dhalsim.dreamhost.com>

On Tue, 22 Mar 2005, Mats Palmgren wrote:
>
> How about something similar to counters? [1]
> 
>   body, section, navigation { depth-weight: IDENT 1; }
>   h:depth(IDENT, 3) {}
> 
> that is, :depth(IDENT, number) would match an element where the sum of
> its ascenders' weight for the depth IDENT equals number.

That's a neat idea!

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

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