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

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 UTC