W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2012

2002/css-validator/org/w3c/css/properties/css3 CssTransitionProperty.java,1.1,1.2

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 03 Oct 2012 12:03:49 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1TJNg5-0004q7-2f@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv18585/css3

Modified Files:
	CssTransitionProperty.java 
Log Message:
warning for non-existent properties

Index: CssTransitionProperty.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssTransitionProperty.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssTransitionProperty.java	3 Oct 2012 10:21:22 -0000	1.1
+++ CssTransitionProperty.java	3 Oct 2012 12:03:46 -0000	1.2
@@ -5,9 +5,11 @@
 // Please first read the full copyright statement in file COPYRIGHT.html
 package org.w3c.css.properties.css3;
 
+import org.w3c.css.properties.PropertiesLoader;
 import org.w3c.css.util.ApplContext;
 import org.w3c.css.util.InvalidParamException;
 import org.w3c.css.values.CssExpression;
+import org.w3c.css.values.CssIdent;
 import org.w3c.css.values.CssLayerList;
 import org.w3c.css.values.CssTypes;
 import org.w3c.css.values.CssValue;
@@ -21,6 +23,7 @@
  */
 public class CssTransitionProperty extends org.w3c.css.properties.css.CssTransitionProperty {
 
+	public static final CssIdent all = CssIdent.getIdent("all");
 	/**
 	 * Create a new CssTransitionProperty
 	 */
@@ -58,8 +61,12 @@
 						singleVal = true;
 						sValue = none;
 						values.add(none);
+					} else if (all.equals(val)) {
+						values.add(all);
 					} else {
-						// TOTO check it's an existing property
+						if (PropertiesLoader.getProfile(ac.getPropertyKey()).getProperty(val.toString()) == null) {
+							ac.getFrame().addWarning("noexproperty", val.toString());
+						}
 						values.add(val);
 					}
 					break;
Received on Wednesday, 3 October 2012 12:03:53 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:52 UTC