[whatwg] [Slightly OT(?)] Programmatically defined styles [Re:Superset encodings [Re: ISO-8859-* and the C1 control range]]

Kristof Zelechovski giecrilj at stegny.2a.pl
Sat May 31 01:10:46 PDT 2008


Declaring classes for colors does not create much overhead over the cost of
actually using the colors on the page.  Otherwise there is no need to do so.
Unnecessary declarations can be purged.  
Chris
(BTW, is there any purging static "linker" for JavaScript, assuming "eval"
is not used?  What about CSS?)

-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Oistein E. Andersen
Sent: Friday, May 30, 2008 9:26 PM
To: whatwg at whatwg.org
Subject: [whatwg] [Slightly OT(?)] Programmatically defined styles
[Re:Superset encodings [Re: ISO-8859-* and the C1 control range]]

Adding 256 classes (of which 100--200 are actually used in each document)
is certainly feasible.

However, this solution would not seem to be practical for a colour scheme
using a larger number of colours. Would your mantra remain the same
given, e.g., 256^2 or 64^3 distinct shades of colour? If not, where should
the boundary be drawn?

-- 
Oistein E. Andersen





More information about the whatwg mailing list