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

Re: [selectors4] Use pesudo-class instead for selecting parent elems

From: Simon Sapin <simon.sapin@exyr.org>
Date: Tue, 03 Sep 2013 16:34:55 +0100
Message-ID: <5226019F.3040606@exyr.org>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: Xidorn Quan <quanxunzhen@gmail.com>, www-style list <www-style@w3.org>
Le 03/09/2013 16:15, Tab Atkins Jr. a écrit :
> On Tue, Sep 3, 2013 at 1:24 AM, Simon Sapin <simon.sapin@exyr.org> wrote:
>> Le 03/09/2013 09:15, Simon Sapin a écrit :
>>> Le 03/09/2013 03:00, Xidorn Quan a écrit :
>>>> I believe that :matches which supports complete complex selector is
>>>> hard, if not impossible, to be implemented in a fast way, but it is
>>>> possible for the pseudo-class I requested which narrows the looking-up
>>>> range to its descendents.
>>> Is it? As far as I understand, the problem here is that a dynamic change
>>> anywhere in the tree, in the presence of such selectors, would require a
>>> big part of the tree or the whole document to be restyled.
>>> Does your proposal really help with that? Especially (see below) if the
>>> argument to :has() can start with a combinator.
> Boris has said before that a restricted form of :has() that only
> selected for children would likely be acceptable from a performance
> standpoint.

Then it would definitely be worth having, in the fast profile.

Simon Sapin
Received on Tuesday, 3 September 2013 15:35:22 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:31 UTC