W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

2002/css-validator/org/w3c/css/properties/css1 Css1Style.java,1.9,1.10

From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 03 Feb 2009 19:39:03 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LUR6t-0003Hx-7t@lionel-hutz.w3.org>

Update of /sources/public/2002/css-validator/org/w3c/css/properties/css1
In directory hutz:/tmp/cvs-serv12597/org/w3c/css/properties/css1

Modified Files:
	Css1Style.java 
Log Message:
tentative patch for bug 154: http://www.w3.org/Bugs/Public/show_bug.cgi?id=154 - sending a warning for floated elements with neither intrinsic nor declared width

Index: Css1Style.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css1/Css1Style.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- Css1Style.java	28 Mar 2008 16:36:46 -0000	1.9
+++ Css1Style.java	3 Feb 2009 19:39:01 -0000	1.10
@@ -2563,6 +2563,14 @@
 	    }
 	}
 
+    if (CssFloat.get() != null) {
+        if(CssWidth.get() == null ) {
+            // TODO do NOT send warning if element in context
+            // is html, img, input, textarea, select, or object
+		    warnings.addWarning(new Warning(cssFloat, "float-no-width", 2, ac));
+        }
+    }
+
 	if (cssBackground.getColor() != null) {
 	    CssColor colorCSS3 = cssColor;
 	    // we need to look if there is the same selector elsewhere
Received on Tuesday, 3 February 2009 19:39:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:08 GMT