Export (0) Print
Expand All
Expand Minimize

2.1.90 [CSS-Level2-2009] Section G.1, Grammar

V0170:

The specification states:

nmstart  [_a-z]|{nonascii}|{escape}
nmchar  [_a-z0-9-]|{nonascii}|{escape}
ident  -?{nmstart}{nmchar}*

property: IDENT S*

Quirks Mode and IE7 Mode (All Versions)

Property names can be prefixed by one or more of the following characters: !@#$%^&*()_-+=/?.,|[]{:<>

V0171:

The specification states:

selector: simple_selector [ combinator selector | S+ [ combinator? selector ]? ]?

Quirks Mode and IE7 Mode (All Versions)

The selector html* is treated like html * and selects all children of the html element. Likewise, ** is treated like * * and selects all children of the universal selector.

In addition, >body is treated like *>body and thus selects the body element.

V0172:

The specification states:

declaration: property ':' S* expr prio?;prio: IMPORTANT_SYM S*;expr: term [ 
operator? term ]*

Quirks Mode (All Versions)

Property values can be followed by one exclamation point (!) and any sequence of the following characters without causing the rule to be ignored:

  • a through z

  • A through Z

  • 0 through 9

  • exclamation point (!)

  • at sign (@)

  • hash symbol (#)

  • dollar sign ($)

  • percent (%)

  • caret (^)

  • ampersand (&)

  • asterisk (*)

  • parentheses [()]

  • underscore (_)

  • hyphen (-)

  • plus sign (+)

  • equals sign (=)

  • solidus (/)

  • question mark (?)

  • period (.)

  • comma (,)

  • pipe symbol (|)

  • square braces ([])

  • curly braces ({})

  • colon (:)

  • angle brackets (<>)

Quirks Mode and IE7 Mode (All Versions)

The !important keyword can be followed by one or more of the following nonalphanumeric characters without causing the rule to be ignored:

  • exclamation point (!)

  • at sign (@)

  • hash symbol (#)

  • dollar sign ($)

  • percent (%)

  • caret (^)

  • ampersand (&)

  • asterisk (*)

  • parentheses [()]

  • underscore (_)

  • hyphen (-)

  • plus sign (+)

  • equals sign (=)

  • solidus (/)

  • question mark (?)

  • period (.)

  • comma (,)

  • pipe symbol (|)

  • square braces ([])

  • curly braces ({})

  • colon (:)

  • angle brackets (<>)

V0173:

The specification states:

selector: simple_selector [ combinator selector | S+ [ combinator? selector ]? ]?

Quirks Mode (All Versions)

A comment token following a CSS combinatory prevents the selector from matching.

Show:
© 2014 Microsoft