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

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

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 04 Sep 2012 09:14:19 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1T8pD9-0008Iy-TS@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory hutz:/tmp/cvs-serv31850/css3

Modified Files:
	CssTextEmphasis.java 
Log Message:
inherit...

Index: CssTextEmphasis.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssTextEmphasis.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CssTextEmphasis.java	4 Sep 2012 09:10:58 -0000	1.1
+++ CssTextEmphasis.java	4 Sep 2012 09:14:17 -0000	1.2
@@ -64,6 +64,15 @@
 					break;
 				case CssTypes.CSS_IDENT:
 					CssIdent ident = (CssIdent) val;
+					if (inherit.equals(ident)) {
+						if (expression.getCount() > 1) {
+							throw new InvalidParamException("value", val,
+									getPropertyName(), ac);
+						}
+						value = inherit;
+						expression.next();
+						return;
+					}
 					CssIdent id = CssTextEmphasisStyle.getAllowedValue(ident);
 					if (id != null) {
 						if (styleExp == null) {
Received on Tuesday, 4 September 2012 09:14:23 UTC

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