W3C home > Mailing lists > Public > www-style@w3.org > October 2011

Re: Selecting the parent of an element

From: David Woolley <forums@david-woolley.me.uk>
Date: Fri, 07 Oct 2011 14:15:54 +0100
Message-ID: <4E8EFB8A.70304@david-woolley.me.uk>
To: Roland Steiner <rolandsteiner@google.com>
CC: Barry van Oudtshoorn <bvanoudtshoorn@gmail.com>, www-style@w3.org
Roland Steiner wrote:

> My main question in all of this is: has anyone thought about how to 
> actually implement this without a) traversing the whole tree twice (once 
> to set selected styles, once to do inheritance), or b) do a full subtree 
> search every time on matching :has()? Additionally, how to handle 
> updating of nodes - it seems ANY node could be affected by changes 
> ANYWHERE in the DOM.

That was essentially why this feature was rejected many years ago, and 
probably has been rejected several times since. The other problem is 
indefinite lookahead.  You are more or less forced to render then 
backtrack, because there are some pages that never actually terminate, 
but grow with the addition of real time data.

(My experience also, is that most things that keep being proposed and 
rejected, eventually get accepted!)

David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.
Received on Friday, 7 October 2011 13:16:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:51 UTC