CSS 2.2 CR Test Suite

Syntax and basic data types (7 tests)

Test Refs Flags Info
+ 4 Syntax and basic data types
+ 4.1 Syntax
+ 4.1.1 Tokenization
escaped-url-001 = Escapes in a URI token
  • URI {U}{R}{L}\({w}{string}{w}\)| {U}{R}{L}\({w}([!#$%&*-\[\]-~]|{nonascii}|{escape})*{w}\)
scientific-notation-001 = scientific notation
  • num [+-]?([0-9]+|[0-9]*\.[0-9]+)(e[+-]?[0-9]+)?
+ 4.1.2 Keywords
+ 4.1.2.1 Vendor-specific extensions
+ 4.1.2.2 Informative Historical Notes
+ 4.1.3 Characters and case
characters-0080-009f-001 = Valid control characters in identifiers
  • identifiers [...] can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+0080 and higher, [...]
+ 4.1.4 Statements
+ 4.1.5 At-rules
+ 4.1.6 Blocks
+ 4.1.7 Rule sets, declaration blocks, and selectors
+ 4.1.8 Declarations and properties
+ 4.1.9 Comments
+ 4.2 Rules for handling parsing errors
malformed-decl-block-001 = Invalid Parsing malformed declaration blocks
  • 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.
+ 4.3 Values
+ 4.3.1 Integers and real numbers
signed-numbers-001 = CSS syntax: signed numbers
  • Both integers and real numbers may immediately be preceded by a "-" or "+" to indicate the sign.
signed-numbers-002 = CSS syntax: signed numbers
  • Both integers and real numbers may immediately be preceded by a "-" or "+" to indicate the sign.
+ 4.3.2 Lengths
+ 4.3.3 Percentages
+ 4.3.4 URLs and URIs
+ 4.3.5 Counters
+ 4.3.6 Colors
+ 4.3.7 Strings
+ 4.3.8 Unsupported Values
+ 4.4 CSS style sheet representation
character-encoding-041 = HTTP Stylesheet encodings UTF with a BOM override
  • If rule 1 above (an HTTP "charset" parameter or similar) yields a character encoding and it is one of UTF-8, UTF-16 or UTF-32, then a BOM, if any, at the start of the file overrides that character encoding, as follows: [...]
+ 4.4.1 Referring to characters not represented in a character encoding