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

Re: Select element if next sibling

From: Brian Kardell <bkardell@gmail.com>
Date: Sat, 29 Jul 2017 12:23:53 -0400
Message-ID: <CADC=+jcSRp1g7ozdG5v8R3CPrUe=WFT47_Eo_syx3j6=pQB+jw@mail.gmail.com>
To: Philip TAYLOR <P.Taylor@rhul.ac.uk>
Cc: Florian Rivoal <florian@rivoal.net>, www-style@w3.org
You can read about profiles in the selectors draft..

https://drafts.csswg.org/selectors/#profiles

Basically, selectors are not only used in CSS. In the DOM for example,
querySelector, querySelectorAll and matches all use selectors. Those are
static, one time evaluations on demand. In CSS, rules are applied and
unapplied automatically based on selectors, even during parse.  The latter
is significant more taxing and hard to keep efficient so, something like
:has is easy to implement in the one case, so far seemingly impossible in
the other.

On Jul 29, 2017 12:00 PM, "Philip TAYLOR" <P.Taylor@rhul.ac.uk> wrote:

>
>
> On 29/07/2017 15:04, Florian Rivoal wrote:
>
> Right, except that :has() is excluded from the dynamic profile (i.e. selectors you can use in regular CSS).
>
> Please forgive my naivety, but can you explain (a) the meaning of "the
> dynamic profile", and (b) the meaning of "regular CSS" ?  Although I do not
> know the exact meaning of either, the terminology used would suggest to me
> that "the dynamic profile" is something other than "regular CSS" (if  by
> "regular" you mean "ordinary" rather than "at predictable intervals", that
> is).
> --
> <Signature>
> Philip Taylor
>
Received on Saturday, 29 July 2017 16:24:17 UTC

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