Re: Request for last-visible-child selector

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 UTC