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

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