W3C home > Mailing lists > Public > www-style@w3.org > January 1999

Re: Section 7.1 or CSS Test Suite puzzled me again

From: L. David Baron <dbaron@fas.harvard.edu>
Date: Thu, 7 Jan 1999 13:43:40 -0500 (EST)
Message-Id: <199901071843.NAA32065@login2.fas.harvard.edu>
To: unk6@rz.uni-karlsruhe.de, www-style@w3.org
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-parsing
Received 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