W3C home > Mailing lists > Public > www-style@w3.org > February 2003

Re: comments on Selectors

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 18 Feb 2003 00:33:34 -0500
Message-Id: <200302180533.AAA20131@nerd-xing.mit.edu>
To: Brant Langer Gurganus <brantgurganus2001@cherokeescouting.org>
Cc: W3C Style List <www-style@w3.org>

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

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