Skip to content

Commit e70cab7

Browse files
committed
[css2] Minor editing, moved part of @import section to media.src, added identifier as a value definition (since used in counter properties)
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40926
1 parent f0b40ab commit e70cab7

1 file changed

Lines changed: 24 additions & 19 deletions

File tree

css2/syndata.src

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: syndata.src,v 2.9 1998-02-16 19:10:14 bbos Exp $ -->
3+
<!-- $Id: syndata.src,v 2.10 1998-02-17 00:32:04 ijacobs Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>CSS2 syntax and basic data types</TITLE>
@@ -115,9 +115,10 @@ href="#skip">skips</a></span> the string.
115115

116116
<!-- How are "beginning" and "end" defined? -IJ -->
117117

118-
<P>An <span class="index-def" title="identifier"> <a
119-
name="identifier"><dfn>identifier</dfn></a></span> consists of
120-
letters, digits, hyphens, non-ASCII, and <a
118+
<P>An <span class="index-def" title="identifier"> <span
119+
class="index-def" title="identifier, definition of"><a
120+
name="value-def-identifier"><dfn>identifier</dfn></a></span> consists
121+
of letters, digits, hyphens, non-ASCII, and <a
121122
href="#escaped-characters">escaped characters.</a>
122123

123124

@@ -172,7 +173,7 @@ href="#escaped-characters">escaped characters.</a>
172173
<LI> The two preceding items define <span class="index-inst"
173174
title="backslash
174175
escapes"><EM>backslash-escapes</EM></span>. Backslash-escapes are
175-
always considered to be part of an <a href="#identifier">
176+
always considered to be part of an <a href="#value-def-identifier">
176177
identifier</a> or a
177178
string (i.e., "\7B" is not punctuation, even though "{" is, and
178179
"\32" is allowed at the start of a class name, even though "2" is
@@ -197,7 +198,7 @@ around the statements.
197198
<H3><a name="at-rules">At-rules</a></H3>
198199

199200
<P> At-rules start with an <DFN>at-keyword</DFN>, which is an <a
200-
href="#identifier">identifier</a> beginning with '@' (for example,
201+
href="#value-def-identifier">identifier</a> beginning with '@' (for example,
201202
'@import', '@page', etc.).
202203

203204
<P> An at-rule consists of everything up to and including the next
@@ -206,10 +207,10 @@ first. A CSS UA that encounters an unrecognized at-rule must
206207
<span class="index-inst" title="skip"><a href="#skip">skip</a></span>
207208
the whole of the @-rule and continue parsing after it.
208209

209-
<P> CSS2 user agents have some additional constraints, e.g., they must
210-
also <span class="index-inst" title="skip"><a
211-
href="#skip">skip</a></span> any '@import' rule that occurs inside a
212-
<a href="#block">block</a> or that doesn't precede all rule sets.
210+
<P>CSS2 user agents must <span class="index-inst" title="skip"><a
211+
href="#skip">skip</a></span> any <a
212+
href="media.html#at-import">'@import'</a> rule that occurs inside a <a
213+
href="#block">block</a> or that doesn't precede all rule sets.
213214

214215
<div class="illegal-example"><P>
215216
Here is an example. Assume a CSS2 parser encounters this style sheet:
@@ -367,7 +368,7 @@ Thus, the following rules:</p>
367368
</pre>
368369
</div>
369370

370-
<P>A property is an <a href="#identifier">identifier</a>. Any
371+
<P>A property is an <a href="#value-def-identifier">identifier</a>. Any
371372
character may occur in the value, but parentheses (()), brackets ([]),
372373
braces ({}), single quotes (') and double quotes (") <!-- " --> must
373374
come in matching pairs. Parentheses, brackets, and braces may be
@@ -752,11 +753,14 @@ unavailable or inapplicable resources.
752753

753754
<H3><a name="counter">Counters</a></h3>
754755

755-
<p>Counters are denoted by identifiers (see the <span
756-
class="propinst-counter-increment">'counter-increment'</span> and<span
757-
class="propinst-counter-reset"> 'counter-reset'</span> properties). To
758-
refer to the value of a counter, the notation
759-
'counter(<var>name</var>)' or 'counter(<var>name</var>,
756+
<p><span class="index-def" title="&lt;counter&gt;, definition of"><a
757+
name="value-def-counter">Counters</a></span> are denoted by
758+
identifiers (see the <span
759+
class="propinst-counter-increment">'counter-increment'</span> and
760+
<span class="propinst-counter-reset">'counter-reset'</span>
761+
properties). To refer to the value of a counter, the notation
762+
<span class="index-def" title="counter()">
763+
'counter(<var>name</var>)'</span> or 'counter(<var>name</var>,
760764
<var>style</var>)' is used, where <var>name</var> is replaced by the
761765
identifier of the counter, and <var>style</var> is a <span
762766
class="index-inst" title="list-style-type"><span
@@ -934,9 +938,10 @@ unit.
934938

935939
<h3><a name="strings">Strings</a></H3>
936940

937-
<P><span class="index-def" title="strings">Strings</span> can either
938-
be written with double quotes or with single quotes. Double quotes
939-
cannot occur inside double quotes, unless escaped (as '\"' or as
941+
<P><span class="index-def" title="&lt;string&gt;, definition of"><a
942+
name="value-def-string">string</a>Strings</span> can either be written
943+
with double quotes or with single quotes. Double quotes cannot occur
944+
inside double quotes, unless escaped (as '\"' or as
940945
'\22'). Analogously for single quotes ("\'" or "\27"). Examples:
941946

942947
<pre>

0 commit comments

Comments
 (0)