W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2008

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

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Sat, 31 May 2008 10:10:46 +0200
Message-ID: <B3FF94BF249B4105991FBD44A42A7CC2@POCZTOWIEC>
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@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
Received on Saturday, 31 May 2008 01:10:46 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:02 UTC