W3C home > Mailing lists > Public > www-style@w3.org > August 1997

Re: CSSCheck, a Cascading Style Sheets lint

From: Liam Quinn <liam@htmlhelp.com>
Date: Sun, 03 Aug 1997 00:14:04 -0400
Message-Id: <3.0.2.32.19970803001404.0096baf0@undergrad.math.uwaterloo.ca>
To: Chris Lilley <Chris.Lilley@sophia.inria.fr>, www-style@w3.org
-----BEGIN PGP SIGNED MESSAGE-----

At 01:33 PM 02/08/97 +0200, Chris Lilley wrote:
>On Jul 29, 10:52pm, Liam Quinn wrote:
>
>> CSSCheck currently supports CSS1 and CSS Positioning.  Support for CSS
>> Printing, ACSS, and Web Fonts will be added in the coming weeks.
>
>The warnings sometimes have false positives. For example
>
>P {color: black }
>P {background: white }
>
>gives two warnings, one that color was set without background and
>one that background was set without color.

Yes, I was aware of this problem, but I was hesitant to solve it since 
it'd require (AFAICT) an extra pass through the style sheet.  I've now 
fixed the problem with a two-pass approach to parsing the style sheet, but 
the processing time has increased by about 75%.  I'm wondering if the 
extra accuracy is worth that much time.

I can eliminate one of the above false warnings without increasing the 
processing time from what it was, but for true accuracy I need two passes 
through the style sheet.

>In an ideal world, of course, it would read all the style sheets that
>were linked (directly or indirectly) to a document, and any inline
>style attributes, cascade them, and analyse the result.

In an ideal world, I'd be a more experienced programmer :)  Extending the 
lint to scan HTML documents has always been in the back of my head, but I 
think it'll stay there awhile longer since the current CSSCheck is 
somewhat slow.  (But maybe this way style sheet authors will be encouraged 
to use external style sheets instead of embedded or inlined style.)

>However, what you have there is very impressive and useful to the
>authoring community.

Thanks, I just hope it's fast enough to be useful to the authoring 
community.

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQB1AwUBM+QFiw/JhtXygIx1AQHOTwMAh4IIG1CyYAf4S8ErhvUPTap4ZqhbYwRS
+UX8/yJTfyShR8poofF0+oTEvKs2uLOYHZFNEy/EMJwXtTACtZcQ10/i0WS4C9we
fSjEcIaqqO9FfoJ7bp266sJGAYGYacXz
=sJWG
-----END PGP SIGNATURE-----

Liam Quinn
===============  http://www.htmlhelp.com/%7Eliam/  ===============
Web Design Group            Enhanced Designs, Web Site Development
http://www.htmlhelp.com/    http://enhanced-designs.com/
======  PGP Key at http://www.htmlhelp.com/%7Eliam/pgp.html  =====
Received on Sunday, 3 August 1997 00:13:22 GMT

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