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

Re: [selectors4] Proposal for extending Selectors Level 4 with possibility to select attributes

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 5 Nov 2013 09:48:40 -0800
Message-ID: <CAAWBYDD+S1YLt0_+hbxS_erLG1VG6M6Yr78wj1Q9uGaEveY+5g@mail.gmail.com>
To: Simon Sapin <simon.sapin@exyr.org>
Cc: Jirka Kosek <jirka@kosek.cz>, www-style list <www-style@w3.org>
On Tue, Nov 5, 2013 at 9:12 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
> Le 05/11/2013 16:42, Tab Atkins Jr. a écrit :
>> Remember that that restriction isn't actually part of the syntax any
>> longer (or rather, we agreed to remove it from the syntax).  It's just
>> that several pseudo-elements don't have any children or siblings, so
>> by definition anything following them will cause the match to fail.
> That’s not what I read in the spec:
> http://dev.w3.org/csswg/selectors4/#pseudo-elements
> "Must", as I understand it, means that selectors that do otherwise are
> invalid rather than merely not matching anything. (BTW I found this hard to
> follow.)
> The change from Level 3 is that pseudo-elements may be followed by "user
> action pseudo-classes".

Yeah, the spec hasn't been updated yet, but we agreed that
pseudo-elements *can* be followed by arbitrary other selectors.  This
is only relevant for pseudo-elements that can contain content, like
::region or ::content (from Shadow DOM).

Received on Tuesday, 5 November 2013 17:49:28 UTC

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