Re: comments on Selectors

> Its been a while since I read it and who knows how up-to-date the 
> document is.

It's up to date.  All it says is that a rule like:

*:empty { color: red }

will take longer to process than a rule like

.empty-stuff { color: red }

because the former will be compared to all elements.

The perf difference is hard (if possible) to notice on a typical web page; that
document's primary audience are people writing Mozilla themes and XBL (the
amount of CSS in a typical Mozilla theme plus the default CSS that's always
applied to the chrome is easily 10 times larger than the amount of CSS I've
seen in any web page...)

In any case, doing anything with the spec based on this pretty irrelevant
implementation detail in one implementation is not the way to go.  The
decisions about the spec should be made independently of such issues.

Boris
-- 
Conway's Law:
    In any organization there will always be one person
who knows what is going on.  This person must be fired.

Received on Tuesday, 18 February 2003 00:33:39 UTC