This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 760 - No error for doubled semicolon
Summary: No error for doubled semicolon
Status: RESOLVED INVALID
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Other (show other bugs)
Version: CSS Validator
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Olivier Thereaux
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-28 23:51 UTC by Bj
Modified: 2004-10-21 22:10 UTC (History)
1 user (show)

See Also:


Attachments

Description Bj 2004-05-28 23:51:54 UTC
From http://jigsaw.w3.org/css-validator/BUGS.html

''
I have just discovered that this CSS rule, with two semicolons, did not 
generate a warning...

h1 { margin-left: 2%; ; }
''
Comment 1 Etan Wexler 2004-10-21 22:10:03 UTC
The core grammar given in CSS 2.1 allows successive semicolons
(<http://www.w3.org/TR/CSS21/syndata.html#tokenization>):

ruleset: selector? '{' S* declaration? [ ';' S* declaration? ]* '}' S*;

The same allowance has been in CSS2
(<http://www.w3.org/TR/REC-CSS2/syndata.html#tokenization>)
and in CSS1
(<http://www.w3.org/TR/REC-CSS1#appendix-b>).

There is no sign that the CSS3 syntax module
(<http://www.w3.org/TR/css3-syntax/#style>)
will change the allowance.