W3C home > Mailing lists > Public > www-style@w3.org > July 2017

Re: Select element if next sibling

From: Sebastian Zartner <sebastianzartner@gmail.com>
Date: Fri, 28 Jul 2017 22:43:05 +0200
Message-ID: <CAERejNa-047KYA5OOwA69OPUdxJOxjRDwai7n1H-uMpC1QLUTw@mail.gmail.com>
To: Sebastian Malton <sebastian@malton.name>
Cc: "www-style@w3.org" <www-style@w3.org>
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

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