- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 19 Oct 2012 15:09:13 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css2
In directory hutz:/tmp/cvs-serv19709/css2
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/css2/CssOutlineStyle.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssOutlineStyle.java 16 Oct 2012 20:43:59 -0000 1.1
+++ CssOutlineStyle.java 19 Oct 2012 15:09:10 -0000 1.2
@@ -8,6 +8,7 @@
import org.w3c.css.util.ApplContext;
import org.w3c.css.util.InvalidParamException;
import org.w3c.css.values.CssExpression;
+import org.w3c.css.values.CssIdent;
/**
* @spec http://www.w3.org/TR/2008/REC-CSS2-20080411/ui.html#propdef-outline-style
@@ -15,6 +16,8 @@
*/
public class CssOutlineStyle extends org.w3c.css.properties.css.CssOutlineStyle {
+ static final CssIdent hidden = CssIdent.getIdent("hidden");
+
/**
* Create a new CssOutlineStyle
*/
@@ -33,6 +36,11 @@
setByUser();
// 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);
+ }
}
public CssOutlineStyle(ApplContext ac, CssExpression expression)
Received on Friday, 19 October 2012 15:09:14 UTC