W3C home > Mailing lists > Public > www-validator-cvs@w3.org > January 2013

CVS 2002/css-validator/org/w3c/css/properties/css21

From: CVS User ylafon <cvsmail@w3.org>
Date: Fri, 04 Jan 2013 16:06:48 +0000
Message-Id: <E1Tr9nE-0002xq-Jr@roscoe.w3.org>
To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css21
In directory roscoe:/tmp/cvs-serv11386/css21

Modified Files:
	CssPitch.java 
Log Message:
0 for 0Hz is allowed in CSS21 (but not in CSS2)

--- /sources/public/2002/css-validator/org/w3c/css/properties/css21/CssPitch.java	2013/01/04 11:07:25	1.1
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css21/CssPitch.java	2013/01/04 16:06:48	1.2
@@ -1,4 +1,4 @@
-// $Id: CssPitch.java,v 1.1 2013/01/04 11:07:25 ylafon Exp $
+// $Id: CssPitch.java,v 1.2 2013/01/04 16:06:48 ylafon Exp $
 // Author: Yves Lafon <ylafon@w3.org>
 //
 // (c) COPYRIGHT MIT, ERCIM and Keio University, 2013.
@@ -64,6 +64,9 @@
 		op = expression.getOperator();
 
 		switch (val.getType()) {
+			case CssTypes.CSS_NUMBER:
+				// it should be getFrequency()
+				val.getLength();
 			case CssTypes.CSS_FREQUENCY:
 				value = val;
 				break;
Received on Friday, 4 January 2013 16:06:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 4 January 2013 16:06:49 GMT