W3C home > Mailing lists > Public > www-validator-cvs@w3.org > December 2009

2002/css-validator/org/w3c/css/properties/css3 CssColumnRuleColor.java,1.2,1.3

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 17 Dec 2009 17:35:03 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NLKFj-0000TU-J6@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv1806

Modified Files:
	CssColumnRuleColor.java 
Log Message:
altough the spec says that it uses CSS2 color, it should use CSS3 colors for consistency


Index: CssColumnRuleColor.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssColumnRuleColor.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- CssColumnRuleColor.java	14 Sep 2005 15:15:04 -0000	1.2
+++ CssColumnRuleColor.java	17 Dec 2009 17:35:01 -0000	1.3
@@ -54,11 +54,13 @@
 	setByUser();
 	CssValue val = expression.getValue();
 
+	if(check && expression.getCount() > 1) {
+	    throw new InvalidParamException("unrecognize", ac);
+	}
+
 	try {
 	    color = new CssColor(ac, expression);
-	    expression.next();
-	}
-	catch (InvalidParamException e) {
+	} catch (InvalidParamException e) {
 	    throw new InvalidParamException("value",
 					    expression.getValue(),
 					    getPropertyName(), ac);
@@ -110,7 +112,7 @@
      * Returns the name of this property
      */
     public String getPropertyName() {
-	return "column-border-color";
+	return "column-rule-color";
     }
 
     /**
@@ -141,5 +143,4 @@
     public boolean isDefault() {
 	return false;
     }
-
 }
Received on Thursday, 17 December 2009 17:35:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:16 GMT