- From: Allan Sandfeld Jensen <kde@carewolf.com>
- Date: Tue, 22 Mar 2005 01:55:14 +0100
- To: www-style@w3.org
On Monday 21 March 2005 10:29, Anne van Kesteren wrote: > The current Selectors specification ([css3-selectors]) defines various > methods for selecting siblings using :nth-child. However, it does not > define such a method for trees. Rather than add even more specialised selectors how about adding one based on counters ":nth-counter" could be used to select anything anyway the developer choices. For counting depth you would use :before {counter-increment: depth 1} and :after { counter-increment: depth -1 }. It could also very easily replace the existing :nth-of-type and page selection. `Allan
Received on Tuesday, 22 March 2005 00:55:29 UTC