This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
As described on http://www.illumit.com/css-validator/ when the CSS validator is run from the command line (that is without using it through a servlet) there is no css21 option available. The fix is easy.
For some reason the Bugzilla bugs when I want to add the patch attachment. So here is the patch against org/w3c/css/css/StyleSheetCom.java : --- StyleSheetCom.java 2006-03-19 07:07:43.000000000 +0100 +++ StyleSheetCom.java.new 2006-03-19 07:07:29.000000000 +0100 @@ -174,8 +174,10 @@ printAvailableFormat(new PrintWriter(System.err)); } else if (argument.startsWith("@")) { style.defaultmedium = argument; - } else if (argument.equals("css1") || argument.equals("css2") - || argument.equals("css3") || + } else if (argument.equals("css1") || + argument.equals("css2") || + argument.equals("css21") || + argument.equals("css3") || argument.equals("svg") || argument.equals("svgbasic") || argument.equals("svgtiny")) {
Thanks Marc-Aurèle, this must have been forgotten when creating the 2.1 profile. I committed the patch, and also modified the file to document the commandline option.