This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The following validates as valid CSS. /* --- start of test case --- */ a valid rule {color: red; } a broken rule { /* look-out: too many values! */ margin: 0 0 0 0 0 0 0 0; } This string still validates! (the above rule probably broke the parsing) /* --- end of test case --- */
*** Bug 157 has been marked as a duplicate of this bug. ***
Created attachment 373 [details] Too many terms in CSS-2.1 declarations For each non-deprecated property in CSS 2.1, there is at least one declaration. Each declaration's value gives one too many terms. Thus every declaration (every line but the first and last) should raise an error.
Is this bug still valid? I don't think so. My output gives a parsing error on the broken rule. URI : file://localhost/TextArea Line: 7 Context : a broken rule Invalid number : marginParse Error - 0 Line: 12 Context : This string still validates Parse Error - [empty string] Valid CSS information a valid rule { color : red; }
Check the test-case attachment. Results are at <http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FBugs%2FPublic%2Fattachment.cgi%3Fid%3D373%26action%3Dview&usermedium=all>. The validator catches some of the errors, but lets some pass. The specific error crafted by the original reporter is now caught. The bug, as reformulated in a general way, remains valid. Please write more test cases. (Or a conformant parser. And get me a sandwich while youre at it.)
Fixed with today's commit, the online version will be up soon on http://qa-dev.w3.org:8001/css-validator/