Errata in REC-CSS2-20110607 (original) (raw)

These errata have the same status as a Working Draft.

| STRING S* | IDENT S* | URI S* | hexcolor | function
;
(See CSS WG minutes 2012-05-02.)

         | /* empty */;  

In “4.1.7 Rule sets, declaration blocks, and selectors”, change the second paragraph as follows:
A declaration block starts with a left curly brace ({) and ends with the matching right curly brace (}). In between there must be a list of zero or more semicolon-separated (;) declarations declarations and at-rules. Declarations must end with a semicolon (;) unless they are last in the list.

Note: CSS level 2 has no at-rules that may appear inside rule sets, but such at-rules may be defined in future levels.
In “4.2 Rules for handling parsing errors”, change the rule for malformed declarations as follows:

p { color:green }  
p { @foo { bar: baz } color:green }  /* unknown at-rule */  
p { color:green; color }  /* malformed declaration missing ':', value */  
p { color:red;   color; color:green }  /* same with expected recovery */  
p { color:green; color: } /* malformed declaration missing value */  
p { color:red;   color:; color:green } /* same with expected recovery */  
p { color:green; color{;color:maroon} } /* unexpected tokens { } */  
 p { color:red;   color{;color:maroon}; color:green } /* same with recovery */  

And, finally, in “13.2 Page boxes: the @page rule&rdquo, remove the following text, which is now redundant:
The rules for handling malformed declarations, malformed statements, and invalid at-rules inside @page are as defined insection 4.2, with the following addition: when the UA expects the start of a declaration or at-rule (i.e., an IDENT token or an ATKEYWORD token) but finds an unexpected token instead, that token is considered to be the first token of a malformed declaration. I.e., the rule for malformed declarations, rather than malformed statements is used to determine which tokens to ignore in that case.