W3C home > Mailing lists > Public > www-style@w3.org > June 2010

[css3-selectors] The :nth-sibling combinator

From: Gabriele Romanato <gabriele.romanato@gmail.com>
Date: Thu, 17 Jun 2010 20:51:10 +0200
Message-Id: <086B870D-2C1B-4835-AAF8-125BDF0ABFA3@gmail.com>
To: www-style@w3.org
I don't actually know if something like a :nth-sibling() combinator,  
whose syntax should resemble that of the other :nth selectors, is  
useful or feasible. I stumbled on this problem while viewing a demo on  
scrollable tables that made a large use of something like the following:

span + span + span {}

Actually, this may be rewritten using a :nth-child() combinator.  
Anyway, I also don't know if it's too expensive from the point of view  
of the effective implementation or if it's actually another case of  
excess of functionality (as Hakon Wium Lie clearly explains in his  
thesis on CSS). So, what do you think? There are a lot of "I don't  
know" in this mail, though.


Gabriele Romanato

http://www.css-zibaldone.com/test/  (English)
http://www.css-zibaldone.com/articles/  (English)
http://onwebdev.blogspot.com/  (English)
Received on Thursday, 17 June 2010 18:51:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:47 UTC