This page are obsolete. Current sources for the W3C CSS Checker are at https://github.com/w3c/css-validator

CSS Validator version 2.0

This is the source for the W3C CSS validation service, available under the open source W3C Software license.

You can run it on a web server, on the command line or use it in your new browser.

Get the source

Latest development code

In order to get the latest development code:

    bash$ export CVSROOT=":pserver:anonymous@dev.w3.org:/sources/public"
    bash$ cvs login
    (Logging in to anonymous@dev.w3.org)
    CVS password: anonymous
    bash$ cvs get 2002/css-validator
    ...
    

Note that in spite of our best efforts, the latest development code may be broken at any time.

Latest stable release

In order to get the latest stable release:

bash$ export CVSROOT=":pserver:anonymous@dev.w3.org:/sources/public"
bash$ cvs login
(Logging in to anonymous@dev.w3.org)
CVS password: anonymous
bash$ cvs get -r nytrulce 2002/css-validator
...

Contact / Bugs

If you have any questions or problems with the validator, send us an email. Known problems are listed in W3C's Bugzilla.

Classes and Source overview

This directory contains:

org.w3c.css.parser.analyzer
The parser generated with JavaCC 0.7.1. You'll probably not want to see this directory.
org.w3c.css.parser
The front-end of the parser
org.w3c.css.values
All values for the parser to construct an expression.
org.w3c.css.properties
Configuration and profile properties files and classes handling their loading
org.w3c.css.properties.css1
All cascading style sheet level 1 properties (+ css2 and some of css3).
org.w3c.css.properties.aural
For Aural properties.
org.w3c.css.properties.css2.table
All CSS2 table properties.
org.w3c.css.properties.css2.user
All CSS2 user properties.
org.w3c.css.properties.css2.font
All CSS2 font properties.
org.w3c.css.properties.paged
All CSS2 paged properties.
org.w3c.css.css
The validator is here !
org.w3c.css.util
some utilities for a lot of classes
org.w3c.css.servlet
The validator servlet.

In servlet mode, URL like file are desactivated. Be careful with URL, you can put a URL request so if your site have special authorization to access web pages, it should be dangerous to run the validator on it. You can desactivated all URL request with the init parameter 'import'. Set this parameter to 'false' (default) means any URL request (except file:) are authorized. see the javadoc documentation for more informations on the servlet.

docs
the javadoc documentation.
HOWTO
How can you add your owns properties ?
RUN
How to launch the validator on your local system.

You have a lot of configuration files in the validator (in Java, it means properties).