W3C home > Mailing lists > Public > www-style@w3.org > August 2008

Re: Proposal for limited :matches pseudoclass

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 31 Jul 2008 21:53:50 -0500
Message-ID: <dd0fbad0807311953u6fa4cb05y94e204d7413a5d14@mail.gmail.com>
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: "www-style list" <www-style@w3.org>
On Thu, Jul 31, 2008 at 6:41 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> Tab Atkins Jr. wrote:
>> Got it there at the end.  The + and ~ combinators seem to be naturally
>> symmetric, thus whether you match forward or backward doesn't seem to make a
>> difference in the complexity (to me, at least).
> But there is a fundamental asymmetry in DOM mutations.  During parsing, you
> always add chidren and later siblings, almost never previous siblings, and
> never ancestors.
> Once the page is all loaded, of course, things are a lot more symmetric.
> -Boris

Ah, I understand.  It makes sense now why :matches() would be slower on page

Really, thank you for these explanations.  This thread, combined with
Francois's other thread, has, if nothing else, made the CSS parser much less
confusing for me (and hopefully others).

Received on Friday, 1 August 2008 02:54:28 UTC

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