Re: Computational complexity of CSS

* Andrew Fedoniouk wrote:
>For example system of styles written as :
>
>select
>{
>   option
>   {
>      background-color: color1
>   }
>   @:focus option
>   {
>      background-color: color2
>   }
>}
>
>effectively reduces lookup complexity as inner style blocks
>need to be scanned only for children of the <select> - not
>for all N nodes in the document.

I don't really understand how this is different from your

  select > option { background-color: color1... }
  select:focus > option { background-color: color2 ... }

Why is it not possible for an implementation to behave as if it rewrites
this syntax to your improved syntax and benefit from the more efficient
implementation?
-- 
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 17:14:19 UTC