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

Re: [selectors] Tree selectors

From: Mats Palmgren <mats.palmgren@bredband.net>
Date: Tue, 22 Mar 2005 00:12:38 +0100
Message-ID: <423F54E6.7040209@bredband.net>
To: Ian Hickson <ian@hixie.ch>
CC: BachusII <BachusII@planet.nl>, Anne van Kesteren <fora@annevankesteren.nl>, W3C CSS List <www-style@w3.org>

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.


/Mats Palmgren


[1] http://www.w3.org/TR/2003/WD-css3-content-20030514/#counters
Received on Tuesday, 22 March 2005 04:57:50 GMT

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