W3C home > Mailing lists > Public > www-style@w3.org > November 2005

Re: Computational complexity of CSS

From: Orion Adrian <orion.adrian@gmail.com>
Date: Wed, 16 Nov 2005 12:16:24 -0500
Message-ID: <abd6c8010511160916l6a06bdc9v841501722e173d8e@mail.gmail.com>
To: www-style@w3.org

> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:41 GMT