Re: Select element if next sibling

On 27 July 2017 at 06:23, Sebastian Malton <sebastian@malton.name> wrote:
> Something like `label+div` selects all divs directly following a label. I
> propose `label ->div` which selects all labels that are followed by a div
>
> Sebastian

That's already covered by the :has() pseudo-class defined in
https://drafts.csswg.org/selectors/#relational.

Greetings from your namesake :-),

Sebastian

PS: Requests should be done on the GitHub repo at
https://github.com/w3c/csswg-drafts/issues nowadays.

Received on Friday, 28 July 2017 20:43:51 UTC