W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: [selectors4] Multiple subject indicators

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 20 Jun 2013 10:13:04 -0700
Message-ID: <CAAWBYDAK1AzXmLFuLhShqXDrPZmt53OQ0BQNhzFh6eq5rzPH-Q@mail.gmail.com>
To: François REMY <francois.remy.dev@outlook.com>
Cc: Brice PARENT <briceparent@free.fr>, "www-style@w3.org" <www-style@w3.org>
On Thu, Jun 20, 2013 at 2:01 AM, François REMY
<francois.remy.dev@outlook.com> wrote:
>> <a><b><c><d><e/></d></c></b></a>
>> "(b) (d) e" → matches elements b and d
>> "(b d) e" → matches elements b, c and d
>
> Not sure this is a very frequent use case, but you can still do
>
>    !:any(b, b *) !d e
>
> with basically the same results

Alternately:

  !b !* !d e

A bit grawlixy, but oh well.

~TJ
Received on Thursday, 20 June 2013 17:13:50 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC