Re: Select element if next sibling

Hi,

On Thu, Aug 3, 2017 at 1:22 AM, Sebastian Malton <sebastian@malton.name>
wrote:

> I see that :has() is in the current WD but I have also been told that a
> reason for not implemented is to blocks single pass styling. This selector
> would be almost as useful since it fills a role that's refactoring css
> cannot currently fix and it can be done in a single pass. Namely, holding
> onto a pointer to the previous sibling.
>

If you're processing a label you need to check whether the *next* sibling
matches div, so it's the next pointer you need not the previous one.

Mark

Received on Wednesday, 2 August 2017 16:01:54 UTC