W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: Request for last-visible-child selector

From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
Date: Wed, 15 Aug 2012 18:11:09 +0400
To: Ms2ger <ms2ger@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>,Greg Houston <gregory.houston@gmail.com>
Message-Id: <38951345039869@web11d.yandex.ru>
15.08.2012, 14:14, "Ms2ger" <ms2ger@gmail.com>:
> On 08/15/2012 05:34 AM, Greg Houston wrote:
>
>> šThis is a request for a last-visible-child selector. I often wish to
>> šremove the bottom margin from the last visible child in panels, but
>> šthis becomes complicated if the actual last child has either
>> šdisplay:none or visibility:hidden so that the element that loses it's
>> šmargin is the hidden one rather than the one that is visible.
>
> So how would you handle
>
> :last-visible-child {
> šššdisplay:none;
> }
>
> ?

We could disallow/ignore hiddening properties when used in conjunction with this pseudoclass.

In general, fear (fabulous and overcomable in most cases) of endless loops quite often deprives us of useful features like this.
Received on Wednesday, 15 August 2012 14:12:02 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT