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

2002/css-validator/org/w3c/css/properties/css3 CssOutline.java,1.3,1.4

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 02 Nov 2012 09:48:45 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1TUDrp-0007Jp-Ny@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv28119/css3

Modified Files:
	CssOutline.java 
Log Message:
fix for bug #9123 https://www.w3.org/Bugs/Public/show_bug.cgi?id=9123

Index: CssOutline.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssOutline.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- CssOutline.java	18 Oct 2012 09:46:03 -0000	1.3
+++ CssOutline.java	2 Nov 2012 09:48:43 -0000	1.4
@@ -61,6 +61,19 @@
 			op = expression.getOperator();
 
 			switch (val.getType()) {
+				// temporary, until the parser fixes rgba hsl and others for good
+				case CssTypes.CSS_FUNCTION:
+					if (colorValue == null) {
+						CssExpression ex = new CssExpression();
+						ex.addValue(val);
+						_color = new CssOutlineColor(ac, ex, check);
+						colorValue = _color.value;
+						break;
+					}
+					// else, we already got one...
+					throw new InvalidParamException("value",
+							val.toString(),
+							getPropertyName(), ac);
 				case CssTypes.CSS_NUMBER:
 				case CssTypes.CSS_LENGTH:
 					if (widthValue == null) {
Received on Friday, 2 November 2012 09:48:46 UTC

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