Re: Select element if next sibling

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