- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 16 Oct 2012 21:22:55 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/atsc In directory hutz:/tmp/cvs-serv29846/atsc 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/atsc/CssOutline.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- CssOutline.java 16 Oct 2012 20:43:58 -0000 1.1 +++ CssOutline.java 16 Oct 2012 21:22:53 -0000 1.2 @@ -13,6 +13,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; @@ -136,6 +139,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