4 Syntax and basic data types

Chapter 4 - Syntax and basic data types - 4 Syntax and basic data types

Go to the relevant page of the specification.

counters-001
Parsing counter functions with just the identifier
Counters can be referred to using only the identifier.
counters-002 (invalid)
Parsing invalid counter functions - Too many arguments
A counter is invalid if it has too many arguments.
ident-014
Selector attributes and hyphens
Attribute selectors can begin with hyphens.
ident-015
Attribute selectors and underscores
Attribute selectors can begin with underscores.
ident-016
Attribute selectors with hyphens and underscores
Attribute selectors are valid if they begin with hyphens and then underscores.
ident-017 (invalid)
Attribute selection with digits
Attribute selectors cannot begin with digits.
ident-018 (invalid)
Attribute selectors starting with hyphens and digits
Attribute selectors cannot begin with hyphens then digits.
ident-019
Attribute selectors starting with underscore and digits
Attribute selectors can begin with underscore then digits.