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

Re: [selectors] Previous-sibling combinator

From: Marat Tanalin <mtanalin@yandex.ru>
Date: Fri, 30 Jan 2015 00:38:15 +0300
To: Tab Atkins Jr. <jackalmage@gmail.com>, Benjamin Poulain <benjamin@webkit.org>
Cc: www-style list <www-style@w3.org>
Message-Id: <4164371422567495@web12o.yandex.ru>
29.01.2015, 04:44, "Tab Atkins Jr." <jackalmage@gmail.com>:
> 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.

Great. What are our next steps to actually add the previous-sibling combinator to the selectors spec and ensure that the current discussion conclusion will not be lost and forgotten? Thanks.
Received on Thursday, 29 January 2015 21:38:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC