- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 07 Oct 2011 09:33:21 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css In directory hutz:/tmp/cvs-serv9480/org/w3c/css/properties/css Modified Files: CssBreakAfter.java CssBreakBefore.java CssBreakInside.java CssColor.java CssDirection.java Added Files: CssOpacity.java Log Message: spec version and @since info in properties, finished css3-color <http://www.w3.org/TR/2011/REC-css3-color-20110607/> Index: CssBreakBefore.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssBreakBefore.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CssBreakBefore.java 4 Oct 2011 20:08:11 -0000 1.3 +++ CssBreakBefore.java 7 Oct 2011 09:33:19 -0000 1.4 @@ -16,27 +16,7 @@ import org.w3c.css.values.CssValue; /** - * http://www.w3.org/TR/2009/CR-css3-multicol-20091217/#column-breaks - * <p/> - * When content is laid out in multiple columns, the user agent must determine - * where column breaks are placed. The problem of breaking content into columns - * is similar to breaking content into pages. - * <p/> - * Three new properties are introduced to allow column breaks to be described - * in the same properties as page breaks: ‘break-before’, ‘break-after’, and - * ‘break-inside’. These properties take the same values as - * ‘page-break-before’, ‘page-break-after’, and ‘page-break-inside’ [CSS21]. - * In addition, some new keyword values are added. - * <p/> - * Name: break-before - * Value: auto | always | avoid | left | right | page | column | - * avoid-page | avoid-column - * Initial: auto - * Applies to: block-level elements - * Inherited: no - * Percentages: N/A - * Media: paged - * Computed value: specified value + * @since CSS3 */ public class CssBreakBefore extends CssProperty { Index: CssBreakInside.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssBreakInside.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CssBreakInside.java 4 Oct 2011 20:08:12 -0000 1.3 +++ CssBreakInside.java 7 Oct 2011 09:33:19 -0000 1.4 @@ -16,7 +16,7 @@ import org.w3c.css.values.CssValue; /** -* Introduced in CSS3 + * @since CSS3 */ public class CssBreakInside extends CssProperty { @@ -37,7 +37,7 @@ */ public CssBreakInside(ApplContext ac, CssExpression expression, boolean check) throws InvalidParamException { - throw new InvalidParamException("unrecognize", ac); + throw new InvalidParamException("unrecognize", ac); } public CssBreakInside(ApplContext ac, CssExpression expression) Index: CssColor.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssColor.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- CssColor.java 4 Oct 2011 13:05:24 -0000 1.1 +++ CssColor.java 7 Oct 2011 09:33:19 -0000 1.2 @@ -14,7 +14,7 @@ import org.w3c.css.values.CssValue; /** - * @version $Revision$ + * @since CSS1 */ public class CssColor extends CssProperty { Index: CssBreakAfter.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssBreakAfter.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- CssBreakAfter.java 4 Oct 2011 20:08:11 -0000 1.3 +++ CssBreakAfter.java 7 Oct 2011 09:33:19 -0000 1.4 @@ -16,7 +16,7 @@ import org.w3c.css.values.CssValue; /** - * Present starting with CSS3 + * @since CSS3 */ public class CssBreakAfter extends CssProperty { --- NEW FILE: CssOpacity.java --- // $Id: CssOpacity.java,v 1.1 2011/10/07 09:33:19 ylafon Exp $ // From Sijtsche de Jong (sy.de.jong@let.rug.nl) // // (c) COPYRIGHT 1995-2000 World Wide Web Consortium (MIT, INRIA, Keio University) // Please first read the full copyright statement at // http://www.w3.org/Consortium/Legal/copyright-software-19980720 package org.w3c.css.properties.css; import org.w3c.css.parser.CssStyle; import org.w3c.css.properties.css3.Css3Style; import org.w3c.css.util.ApplContext; import org.w3c.css.util.InvalidParamException; import org.w3c.css.util.Util; import org.w3c.css.values.CssExpression; import org.w3c.css.values.CssValue; /** * @since CSS3 */ public class CssOpacity extends CssProperty { CssValue value; /** * Create a new CssOpacity */ public CssOpacity() { } /** * Create a new CssOpacity * * @param expression The expression for this property * @throws org.w3c.css.util.InvalidParamException * Values are incorrect */ public CssOpacity(ApplContext ac, CssExpression expression, boolean check) throws InvalidParamException { throw new InvalidParamException("unrecognize", ac); } public CssOpacity(ApplContext ac, CssExpression expression) throws InvalidParamException { this(ac, expression, false); } /** * Brings all values back between 0 and 1 * * @param opac The value to be modified if necessary */ private float clampedValue(ApplContext ac, float opac) { if (opac < 0 || opac > 1) { ac.getFrame().addWarning("out-of-range", Util.displayFloat(opac)); return ((opac < 0) ? 0 : 1); } else return (opac); } /** * Add this property to the CssStyle. * * @param style The CssStyle */ public void addToStyle(ApplContext ac, CssStyle style) { if (((Css3Style) style).cssOpacity != null) style.addRedefinitionWarning(ac, this); ((Css3Style) style).cssOpacity = this; } /** * Get this property in the style. * * @param style The style where the property is * @param resolve if true, resolve the style to find this property */ public CssProperty getPropertyInStyle(CssStyle style, boolean resolve) { if (resolve) { return ((Css3Style) style).getOpacity(); } else { return ((Css3Style) style).cssOpacity; } } /** * Compares two properties for equality. * * @param property The other property. */ public boolean equals(CssProperty property) { return false; } /** * Returns the name of this property */ public final String getPropertyName() { return "opacity"; } /** * Returns the value of this property */ public Object get() { return value; } /** * Returns true if this property is "softly" inherited */ public boolean isSoftlyInherited() { return inherit == value; } /** * Returns a string representation of the object */ public String toString() { return value.toString(); } /** * Is the value of this property a default value It is used by all macro for * the function <code>print</code> */ public boolean isDefault() { return false; } } Index: CssDirection.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css/CssDirection.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- CssDirection.java 4 Sep 2011 21:01:54 -0000 1.1 +++ CssDirection.java 7 Oct 2011 09:33:19 -0000 1.2 @@ -26,15 +26,14 @@ public static final CssIdent rtl; static { - ltr = new CssIdent("ltr"); - rtl = new CssIdent("rtl"); + ltr = CssIdent.getIdent("ltr"); + rtl = CssIdent.getIdent("rtl"); } /** * Create a new CssDirection */ public CssDirection() { - value = ltr; } /** @@ -46,9 +45,7 @@ */ public CssDirection(ApplContext ac, CssExpression expression, boolean check) throws InvalidParamException { - throw new InvalidParamException("value", expression.getValue(), - getPropertyName(), ac); - + throw new InvalidParamException("unrecognize", ac); } public CssDirection(ApplContext ac, CssExpression expression) @@ -126,7 +123,7 @@ * It is used by all macro for the function <code>print</code> */ public boolean isDefault() { - return value == ltr; + return false; } }
Received on Friday, 7 October 2011 09:33:24 UTC