Re: [selectors] Tree selectors

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 UTC