- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 05 Apr 2012 17:29:23 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory hutz:/tmp/cvs-serv28031/w3c/css/properties/css3 Modified Files: CssBoxShadow.java Log Message: length test is for 2 to 4 Index: CssBoxShadow.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssBoxShadow.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- CssBoxShadow.java 5 Apr 2012 09:42:21 -0000 1.8 +++ CssBoxShadow.java 5 Apr 2012 17:29:21 -0000 1.9 @@ -168,7 +168,7 @@ } break; case CssTypes.CSS_IDENT: - // if we got 2 or 4 length tokens we must not have others + // if we got 2 to 4 length tokens we must not have others if (got_length != 0) { length_ok = false; } @@ -215,8 +215,8 @@ } expression.next(); } - // we need 2 or 4 lengthed - if (got_length != 2 && got_length != 4) { + // we need 2 to 4 length. > 4 is taken care of in the first switch + if (got_length < 2) { throw new InvalidParamException("unrecognize", ac); } return value;
Received on Thursday, 5 April 2012 17:29:30 UTC