- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 31 Aug 2012 13:34:15 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory hutz:/tmp/cvs-serv10531/css3 Modified Files: Css3Style.java Added Files: CssTextDecorationColor.java Log Message: text-decoration-color per http://www.w3.org/TR/2012/WD-css3-text-20120814/#text-decoration-color0 Index: Css3Style.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/Css3Style.java,v retrieving revision 1.52 retrieving revision 1.53 diff -u -d -r1.52 -r1.53 --- Css3Style.java 31 Aug 2012 12:25:43 -0000 1.52 +++ Css3Style.java 31 Aug 2012 13:34:13 -0000 1.53 @@ -43,6 +43,7 @@ import org.w3c.css.properties.css.CssOpacity; import org.w3c.css.properties.css.CssOverflowWrap; import org.w3c.css.properties.css.CssTextAlignLast; +import org.w3c.css.properties.css.CssTextDecorationColor; import org.w3c.css.properties.css.CssTextDecorationStyle; import org.w3c.css.properties.css.CssTextJustify; import org.w3c.css.properties.css.CssWordBreak; @@ -143,6 +144,7 @@ public CssTextAlignLast cssTextAlignLast; public CssTextJustify cssTextJustify; public CssTextDecorationStyle cssTextDecorationStyle; + public CssTextDecorationColor cssTextDecorationColor; CssDropInitialAfterAdjust cssDropInitialAfterAdjust; CssDropInitialAfterAlign cssDropInitialAfterAlign; @@ -1408,6 +1410,15 @@ return cssTextDecorationStyle; } + public CssTextDecorationColor getTextDecorationColor() { + if (cssTextDecorationColor == null) { + cssTextDecorationColor = + (CssTextDecorationColor) style.CascadingOrder( + new CssTextDecorationColor(), style, selector); + } + return cssTextDecorationColor; + } + /// public CssTextIndentCSS3 getTextIndentCSS3() { --- NEW FILE: CssTextDecorationColor.java --- // $Id: CssTextDecorationColor.java,v 1.1 2012/08/31 13:34:13 ylafon Exp $ // Author: Yves Lafon <ylafon@w3.org> // // (c) COPYRIGHT MIT, ERCIM and Keio University, 2012. // Please first read the full copyright statement in file COPYRIGHT.html package org.w3c.css.properties.css3; import org.w3c.css.util.ApplContext; import org.w3c.css.util.InvalidParamException; import org.w3c.css.values.CssExpression; import org.w3c.css.values.CssValue; /** * @spec http://www.w3.org/TR/2012/WD-css3-text-20120814/#text-decoration-color0 */ public class CssTextDecorationColor extends org.w3c.css.properties.css.CssTextDecorationColor { /** * Create a new CssTextDecorationColor */ public CssTextDecorationColor() { value = initial; } /** * Creates a new CssTextDecorationColor * * @param expression The expression for this property * @throws org.w3c.css.util.InvalidParamException * Expressions are incorrect */ public CssTextDecorationColor(ApplContext ac, CssExpression expression, boolean check) throws InvalidParamException { setByUser(); CssValue val = expression.getValue(); if (check && expression.getCount() > 1) { throw new InvalidParamException("unrecognize", ac); } if (inherit.equals(val)) { value = inherit; expression.next(); } else { try { CssColor tcolor = new CssColor(ac, expression, check); value = tcolor.color; } catch (InvalidParamException e) { throw new InvalidParamException("value", expression.getValue(), getPropertyName(), ac); } } } public CssTextDecorationColor(ApplContext ac, CssExpression expression) throws InvalidParamException { this(ac, expression, false); } }
Received on Friday, 31 August 2012 13:34:18 UTC