W3C home > Mailing lists > Public > www-style@w3.org > March 2009

Re: {css-3 selectors} The :parent pseudo-class 2

From: Andrew Fedoniouk <news@terrainformatica.com>
Date: Mon, 23 Mar 2009 20:06:12 -0700
Message-ID: <49C84E24.6020906@terrainformatica.com>
To: Gabriele Romanato <gabriele.romanato@gmail.com>
CC: www-style@w3.org
Gabriele Romanato wrote:
> For more specificity, we could write this pseudo-class as:
> 
> E:parent(E1)
> 
> Where E1 is the parent element:
> 
> a:parent(h3) {...}
> 
> 

Even worse, sorry.

That means resolution of style of particular element will require scan 
of all its children and sub-children. So almost any DOM update will
require recalculation of styles of all elements in the DOM, eh?


-- 
Andrew Fedoniouk.

http://terrainformatica.com
Received on Tuesday, 24 March 2009 03:06:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:17 GMT