- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Thu, 22 Mar 2012 15:44:24 -0700
- To: www-style@w3.org
On 03/22/2012 11:37 AM, Marat Tanalin | tanalin.com wrote: >> It's necessary if you have a box with some paragraphs and don't want to have unnecessary gaps at the the end and the beginning >> of the box. > > As far as I understand this part of message, it's something that I thought of too. > > Let assume we have a container with blocks inside it, and each block can have margin-top and margin-bottom, and each block can contain another blocks inside them, and nesting level can be arbitrary and is unknown in advance. > > It would be nice to have ability to zeroize margin-top for first child, and first child of it, first child of first child of first child, etc. at once. Same applies for last child. This specific case would probably be better handled by some kind of margin-collapsing control, actually. Are there other cases where you'd need this kind of recursive selector? ~fantasai
Received on Thursday, 22 March 2012 22:44:55 UTC