W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2014

CVS 2002/css-validator/org/w3c/css/properties/css3

From: CVS User ylafon <cvsmail@w3.org>
Date: Mon, 24 Nov 2014 13:54:46 +0000
Message-Id: <E1Xsu6I-0001pQ-Mo@roscoe.w3.org>
To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3
In directory roscoe:/tmp/cvs-serv7028

Modified Files:
	CssFlexBasis.java 
Log Message:
'auto' moved to 'main-size', likely to change to 'content', according to latest edcopy

--- /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssFlexBasis.java	2012/10/08 07:20:48	1.2
+++ /sources/public/2002/css-validator/org/w3c/css/properties/css3/CssFlexBasis.java	2014/11/24 13:54:46	1.3
@@ -1,4 +1,4 @@
-// $Id: CssFlexBasis.java,v 1.2 2012/10/08 07:20:48 ylafon Exp $
+// $Id: CssFlexBasis.java,v 1.3 2014/11/24 13:54:46 ylafon Exp $
 // Author: Yves Lafon <ylafon@w3.org>
 //
 // (c) COPYRIGHT MIT, ERCIM and Keio University, 2012.
@@ -15,16 +15,16 @@
 import org.w3c.css.values.CssValue;
 
 /**
- * @spec http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/#flex-basis-propdef
+ * @spec http://www.w3.org/TR/2014/WD-css-flexbox-1-20140925/#propdef-flex-basis
  * @see CssWidth
  */
 public class CssFlexBasis extends org.w3c.css.properties.css.CssFlexBasis {
 
-	public static final CssIdent auto = CssIdent.getIdent("auto");
+	public static final CssIdent main_size = CssIdent.getIdent("main-size");
 
 	public static final CssIdent getAllowedIdent(CssIdent ident) {
-		if (auto.equals(ident)) {
-			return auto;
+		if (main_size.equals(ident)) {
+			return main_size;
 		}
 		return null;
 	}
@@ -64,8 +64,8 @@
 				CssIdent ident = (CssIdent) val;
 				if (inherit.equals(val)) {
 					value = inherit;
-				} else if (auto.equals(val)) {
-					value = auto;
+				} else if (main_size.equals(val)) {
+					value = main_size;
 				} else {
 					throw new InvalidParamException("unrecognize", ac);
 				}
@@ -97,7 +97,7 @@
 	 * It is used by all macro for the function <code>print</code>
 	 */
 	public boolean isDefault() {
-		return ((value == auto) || (value == initial));
+		return ((value == main_size) || (value == initial));
 	}
 }
 
Received on Monday, 24 November 2014 13:54:47 UTC

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