Re: [selectors] Previous-sibling combinator?

On Thu, Feb 12, 2015 at 3:23 PM, Brad Kemper <brad.kemper@gmail.com> wrote:
>> On Feb 11, 2015, at 1:24 PM, Tab Atkins Jr. <jackalmage@gmail.com> wrote:
>>
>> `el:has(+sibling)`
>
> Wouldn't that be `el:has(+next-sibling)`? The plus sign wouldn't determine if there were siblings that were non-adjacent to el, would it? That is why I'd want `el:has(~following-sibling)` too.

It's an example with a fake element name; don't read too much into it. ^_^

But yeah, ~ is probably on the list too.

~TJ

Received on Thursday, 12 February 2015 05:07:23 UTC