W3C home > Mailing lists > Public > www-style@w3.org > April 2015

Re: W3C can say (?) what an ID means to CSS4, in the fast profile context

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Wed, 08 Apr 2015 09:58:18 -0400
Message-ID: <552533FA.1000509@mit.edu>
To: www-style@w3.org
On 4/8/15 7:29 AM, Reece Dunn wrote:
> Assuming that you just have the DOM data structure in memory, you have
> an in-order traversal of the DOM.

Stop right there.

You're solving the "here is a selector, find the nodes it matches" 
problem.  The "fast" profile is meant to solve the "here is a node, find 
all the selectors that match it" problem, since the latter problem is 
the one relevant to CSS styling of a DOM.

I suggest you think carefully about how you would implement the "id 
selector only matches the first node in the DOM with that id" behavior 
in the "here is a node, find all the selectors that match it" problem.

-Boris
Received on Wednesday, 8 April 2015 13:58:49 UTC

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