You're right. At rules can't come directly within declaration-blocks. At-rules can, however, come in property values. (This is clearer in the CSS2 spec [1], but is stated (implicitly) in CSS1: "Any character may occur in the value, but parentheses (()), brackets ([]), braces ({}), single quotes (') and double quotes (") must come in matching pairs. Parentheses, brackets, and braces may be nested. Inside the quotes, characters are parsed as a string." [2] Thus a valid test would be: P.twentytwo { type-display: @threedee {rotation-code: '}';}; color: green; } David Baron [1] http://www.w3.org/TR/REC-CSS2/syndata.html [2] http://www.w3.org/TR/REC-CSS1#forward-compatible-parsingReceived on Thursday, 7 January 1999 13:43:42 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:58 GMT