Re: Computational complexity of CSS

> Purpose of my note is simple: CSS/selectors as system has fundamental
> flaw or limitation as you wish -  it can handle small documents and small
> style sets only.
>
> 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 mean that probably it makes sense:
>
> 1) to review current flat model of styles/selectors.
> 2) while designing new selectors inspect them first
>     in respect of the problem.

What's to say this scoping isn't already being done behind the scenes?
I would imagine that the lookups are being done as fast as they can be
given the constraints of the current system.

What you really need is the ability to seperate entire groups of styles.

--

Orion Adrian

Received on Wednesday, 16 November 2005 17:16:28 UTC