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

2002/css-validator/org/w3c/css/properties/css3 CssOutlineStyle.java,1.1,1.2

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 19 Oct 2012 15:13:57 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1TPEGr-0005Ue-7R@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv21084/css3

Modified Files:
	CssOutlineStyle.java 
Log Message:
hidden is not a valid outline-style value

Index: CssOutlineStyle.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssOutlineStyle.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssOutlineStyle.java	16 Oct 2012 20:44:01 -0000	1.1
+++ CssOutlineStyle.java	19 Oct 2012 15:13:55 -0000	1.2
@@ -19,6 +19,7 @@
 public class CssOutlineStyle extends org.w3c.css.properties.css.CssOutlineStyle {
 
 	public static final CssIdent auto = CssIdent.getIdent("auto");
+	public static final CssIdent hidden = CssIdent.getIdent("hidden");
 
 	public static final CssIdent getMatchingIdent(CssIdent ident) {
 		if (auto.equals(ident)) {
@@ -69,6 +70,11 @@
 		} else {
 			// here we delegate to BorderStyle implementation
 			value = CssBorderStyle.checkBorderSideStyle(ac, this, expression, check);
+			// but hidden is not a valid value...
+			if (hidden.equals(value)) {
+				throw new InvalidParamException("value", hidden,
+						getPropertyName(), ac);
+			}
 		}
 	}
 
Received on Friday, 19 October 2012 15:14:04 UTC

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