W3C home > Mailing lists > Public > www-style@w3.org > January 2015

Re: [selectors] Previous-sibling combinator

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 28 Jan 2015 17:41:48 -0800
Message-ID: <CAAWBYDAQi3FRKBQybJw1bnjtSq_LWsC7B2yL2C7iLe7UiLbodg@mail.gmail.com>
To: Benjamin Poulain <benjamin@webkit.org>
Cc: www-style list <www-style@w3.org>
On Wed, Jan 28, 2015 at 5:03 PM, Benjamin Poulain <benjamin@webkit.org> wrote:
> I agree. It would be a good idea to add something explicit.
>
> Developers can do ugly things to get to the siblings:
>     #target:nth-last-child(2 of #target, #target ~ foo + bar)
> (e.g. on WebKit Nightly: http://codepen.io/anon/pen/GgvMqP)

Oh jeez, that's quite a hack.  Clever.

Yeah, if we can simulate previous-sibling via things we have approved,
we should do something about it more directly.

~TJ
Received on Thursday, 29 January 2015 01:42:36 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:28 UTC