Re: Computational complexity of CSS

* Andrew Fedoniouk wrote:
>If let's say in style sheet we have something like this:
>
>  select > option { background-color: color1... }
>  select:focus > option { background-color: color2 ... }
>
>(weird but happens)
>
>then on focus-out event UA must resolve (find and inherit) 
>styles for all 10,000 items-elements (and their children) of the list.
>This is serious task for modern hardware. 
>
>Is anybody looking in this direction or you think 
>this problem is a bit artificial?

Well, what do you really want to know? It is unlikely that we change CSS
in a fundamental way such that this problem does not occur, authors are
not going to put less elements in documents or less rules in stylesheets
and you are probably not concerned about making microprocessors faster,
so are you looking for optimizations that could be applied here? Or are
you concerned about how significant the cascade's performance impact is
in this case (compared to for example drawing the 10000 items)?
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Wednesday, 16 November 2005 13:32:50 UTC