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

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 UTC