- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 16 Dec 2009 09:29:49 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css3 In directory hutz:/tmp/cvs-serv26727 Modified Files: Css3Style.java Log Message: added warnings for column properties on non-block level elements Index: Css3Style.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/css3/Css3Style.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Css3Style.java 23 Aug 2005 16:24:20 -0000 1.1 +++ Css3Style.java 16 Dec 2009 09:29:47 -0000 1.2 @@ -8,6 +8,12 @@ package org.w3c.css.properties.css3; +import org.w3c.css.parser.CssSelectors; +import org.w3c.css.util.ApplContext; +import org.w3c.css.util.Util; +import org.w3c.css.util.Warning; +import org.w3c.css.util.Warnings; + import org.w3c.css.parser.CssPrinterStyle; [...3866 lines suppressed...] + if (cssColumnWidth != null) { + warnings.addWarning(new Warning(cssColumnWidth, + "block-level", 1, ac)); + } + } + } + } + + /** + * Find conflicts in this Style + * + * @param warnings For warnings reports. + * @param allSelectors All contexts is the entire style sheet. + */ + public void findConflicts(ApplContext ac, Warnings warnings, + CssSelectors selector, CssSelectors[] allSelectors) { + findConflictsBlockElements(ac, warnings, selector, allSelectors); + super.findConflicts(ac, warnings, selector, allSelectors); + } }
Received on Wednesday, 16 December 2009 09:29:53 UTC