- From: Brad Kemper <brad.kemper@gmail.com>
- Date: Sun, 3 Jul 2016 09:03:04 -0700
- To: Hr Gwea <hrg.wea@gmail.com>
- Cc: www-style list <www-style@w3.org>
> On Jul 2, 2016, at 7:51 PM, Hr Gwea <hrg.wea@gmail.com> wrote: > > Is there any plans or ideas to simplify selectors like this: > > elem1 > elem2, > elem1 > * > elem2, > elem1 > * > * > elem2 {...properties...} > > i.e. all elem2 that are children, grandchildren or great-grandchildren of elem1. > More generally, a descendant combinator that let us specify the max depth of the descendants In selectors 4, :not() can take a selector list. elem1 elem2:not(elem1 * * * elem2) { /* should do what you want */ } > If not, can I propose a solution? You can always propose.
Received on Sunday, 3 July 2016 16:03:39 UTC