Re: Blocks in parentheses or brackets

Bert Bos wrote to <www-style@w3.org> on 21 February 2003 in "Re: Blocks in
parentheses or brackets" (<mid:15958.9863.624296.392437@lanalana.inria.fr>):

> You should distinguish the grammar of appendix D (the one you quoted)
> from the grammar in chapter 4. The former is an approximation of the
> grammar of CSS level 2 *only*, while the latter is for all of CSS.

The latter also forbids blocks in parentheses and in brackets (from
<http://www.w3.org/TR/CSS21/syndata.html#tokenization>):

any         : [ IDENT | NUMBER | PERCENTAGE | DIMENSION | STRING
              | DELIM | URI | HASH | UNICODE-RANGE | INCLUDES
              | FUNCTION any* ')' | DASHMATCH | '(' any* ')' | '[' any* ']'
] S*;

With the exception of the contrary example in section 4.1.6
(<http://www.w3.org/TR/CSS21/syndata.html#block>), this is not currently a
problem. The grammar will only become a problem if the Working Group wants
to add a construct that places blocks in parentheses or in brackets.
 

Received on Saturday, 8 March 2003 03:00:42 UTC