Skip to content

Commit a7896d0

Browse files
committed
[css2] Added explanation that spaces are allowed between tokens in a value,
using text proposed by Ian. --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402084
1 parent 841bc4a commit a7896d0

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

css2/about.src

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'http://www.w3.org/TR/html4/strict.dtd'>
33

44
<html lang="en">
5-
<!-- $Id: about.src,v 2.51 2003-01-27 21:15:36 bbos Exp $ -->
5+
<!-- $Id: about.src,v 2.52 2003-04-29 15:47:01 bbos Exp $ -->
66
<HEAD>
77
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
88
<TITLE>About the CSS&nbsp;2.1 Specification</TITLE>
@@ -221,6 +221,20 @@ the following modifiers:</p>
221221
<EM>Value:</EM> &lt;uri&gt; || &lt;color&gt;<BR>
222222
</BLOCKQUOTE>
223223

224+
<p>Value types are specified in terms of tokens, as described in <a
225+
href="grammar.html#q2">Appendix G.2</a>. As the grammar allows spaces
226+
between tokens in the components of the <code>expr</code> production,
227+
spaces may appear between tokens in values.
228+
229+
<p class=note>Note: In many cases, spaces will in fact be
230+
<em>required</em> between tokens in order to distinguish them from
231+
each other. For example, the value '1em2em' would be parsed as a
232+
single <code>DIMEN</code> token with the number '1' and the identifier
233+
'em2em', which is an invalid unit. In this case, a space would be
234+
required before the '2' to get this parsed as the two lengths '1em'
235+
and '2em'.
236+
237+
224238
<h4><a name="initial-value">Initial</a></h4>
225239

226240
<P>This part specifies the property's initial value. If the property

0 commit comments

Comments
 (0)