- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 04 Sep 2012 09:10:29 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory hutz:/tmp/cvs-serv28187/css3 Modified Files: CssTextShadow.java Log Message: minor Index: CssTextShadow.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssTextShadow.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CssTextShadow.java 30 Aug 2012 17:03:34 -0000 1.2 +++ CssTextShadow.java 4 Sep 2012 09:10:27 -0000 1.3 @@ -128,9 +128,14 @@ values.add(val); exp.next(); } else { + // we can't have two colors + if (color != null) { + throw new InvalidParamException("value", + val, getPropertyName(), ac); + } CssColor c = new CssColor(ac, exp, false); color = c.getColor(); - // color can be first or last in CSS2 + // color can be first or last if (values.size() > 0 && exp.getRemainingCount() != 0) { if (color != null) { throw new InvalidParamException("value",
Received on Tuesday, 4 September 2012 09:10:33 UTC