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

2002/css-validator/org/w3c/css/properties/css21 CssOutline.java,1.1,1.2

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 16 Oct 2012 21:22:55 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1TOEbH-0007mr-9M@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css21
In directory hutz:/tmp/cvs-serv29846/css21

Modified Files:
	CssOutline.java 
Log Message:
don't forget to create the outline value...

Index: CssOutline.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css21/CssOutline.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssOutline.java	16 Oct 2012 20:44:00 -0000	1.1
+++ CssOutline.java	16 Oct 2012 21:22:53 -0000	1.2
@@ -11,6 +11,9 @@
 import org.w3c.css.values.CssIdent;
 import org.w3c.css.values.CssTypes;
 import org.w3c.css.values.CssValue;
+import org.w3c.css.values.CssValueList;
+
+import java.util.ArrayList;
 
 import static org.w3c.css.values.CssOperator.SPACE;
 
@@ -132,6 +135,27 @@
 						ac);
 			}
 		}
+		if (expression.getCount() == 1) {
+			if (_width.value != null) {
+				value = _width.value;
+			} else if (_style.value != null) {
+				value = _style.value;
+			} else {
+				value = _color.value;
+			}
+		} else {
+			ArrayList<CssValue> values = new ArrayList<CssValue>(4);
+			if (_width.value != null) {
+				values.add(_width.value);
+			}
+			if (_style.value != null) {
+				values.add(_style.value);
+			}
+			if (_color.value != null) {
+				values.add(_color.value);
+			}
+			value = new CssValueList(values);
+		}
 	}
 
 	public CssOutline(ApplContext ac, CssExpression expression)
Received on Tuesday, 16 October 2012 21:22:56 UTC

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