W3C home > Mailing lists > Public > public-houdini@w3.org > February 2015

Re: Proposal for adding @extend to CSS

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 3 Feb 2015 19:11:05 -0800
Message-ID: <CAAWBYDD-a9wgTfLi1-Wq9nab0pOwM6x+sa8dLA=Qn6WMCBNqNA@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: public-houdini@w3.org
On Sat, Jan 31, 2015 at 9:56 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> On 1/31/15 11:55 AM, Tab Atkins Jr. wrote:
>> No, I don't think this affects the way you have to do selector
>> matching.  You just let @extend mutate the data structures you use for
>> matching
> That data structure is the DOM.

Well, not strictly.  A lot of our selector optimizations rely on
separate data structures, like bloom filters sitting on nodes.

>  I'm not sure you seriously mean that
> @extend is supposed to mutate the DOM, so I'd like to understand what you
> actually mean here.

You're right, this definitely does not change the DOM.  The spec
states what I mean quite plainly - for the purpose of matching
selectors, the elements are treated as if they have the necessary
qualities to also match the @extend selector.

Depending on your implementation, this "affects the way you have to do
selector matching" to a greater or lesser extent.  The context of my
quoted text was in reference to Fran├žois saying that this would
require switching to top-down selector matching, or some other radical
change.  It doesn't.

Received on Wednesday, 4 February 2015 03:11:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 11 February 2015 15:47:05 UTC