Skip to content

Commit 1d87e71

Browse files
committed
[css2] Generated. Do not edit!
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402278
1 parent d4eb483 commit 1d87e71

7 files changed

Lines changed: 108 additions & 82 deletions

File tree

css2/grammar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ <h2><a name="q2">G.2 Lexical scanner</a></h2>
177177
unicode \\{h}{1,6}(\r\n|[ \t\r\n\f])?
178178
escape {unicode}|\\[ -~\200-\377]
179179
nmstart [_a-z]|{nonascii}|{escape}
180-
nmchar [_a-zA-Z0-9-]|{nonascii}|{escape}
180+
nmchar [_a-z0-9-]|{nonascii}|{escape}
181181
string1 \"([\t !#$%&amp;(-~]|\\{nl}|\'|{nonascii}|{escape})*\"
182182
string2 \'([\t !#$%&amp;(-~]|\\{nl}|\"|{nonascii}|{escape})*\'
183183

css2/indexlist.html

Lines changed: 30 additions & 26 deletions
Large diffs are not rendered by default.

css2/selector.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,14 @@ <h3>5.8.3 <a name="class-html">Class selectors</a></h3>
626626
non-normative in this specification.</em>
627627
</div>
628628

629+
<div class="note"><p><em><strong>Note:</strong> If an element has
630+
multiple class attributes, their values must be concatenated with
631+
spaces between the values before searching for the class. As of this
632+
time the working group is not aware of any manner in which this
633+
situation can be reached, however, so this behavior is explicitly
634+
non-normative in this specification.</em>
635+
</div>
636+
629637
<h2>5.9 <a name="id-selectors">ID selectors</a></h2>
630638

631639
<P>Document languages may contain attributes that are declared to be

css2/syndata.html

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ <h3><a name="q6">4.1.3 Characters and case</a></h3>
284284
href="selector.html">selectors</a>) can contain only the
285285
characters [A-Za-z0-9] and ISO 10646 characters U+00A1 and higher,
286286
plus the hyphen (-) and the underscore (_); they cannot start with
287-
a digit or a hyphen followed by a digit.
287+
a digit, or a hyphen followed by a digit.
288288
Only properties, values, units, pseudo-classes,
289289
pseudo-elements, and at-rules may <em>start</em> with a hyphen (-); other
290290
identifiers (e.g. element names, classes, or IDs) may not.
@@ -376,8 +376,8 @@ <h3>4.1.5 <span class="index-def" title="at-rule">
376376
<p>CSS&nbsp;2.1 user agents must <span class="index-inst" title="ignore"><a name="x10"
377377
href="#ignore">ignore</a></span> any <a
378378
href="cascade.html#at-import">'@import'</a> rule that occurs inside a <a
379-
href="#block">block</a> or after any valid rule other than an @charset or
380-
an @import rule.
379+
href="#block">block</a> or after any valid rule other than an <a name="x11"><span
380+
class="index-inst">@charset</span></a> or an @import rule.
381381
</p>
382382

383383
<div class="illegal-example"><P style="display:none">Illegal example(s):</P><p>
@@ -390,7 +390,7 @@ <h3>4.1.5 <span class="index-def" title="at-rule">
390390
</pre>
391391

392392
<p> The second '@import' is illegal according to CSS2.1. The CSS&nbsp;2.1 parser
393-
<span class="index-inst" title="ignore"><a name="x11" href="#ignore">ignores</a></span>
393+
<span class="index-inst" title="ignore"><a name="x12" href="#ignore">ignores</a></span>
394394
the whole at-rule, effectively reducing the style sheet to:
395395
</p>
396396
<pre>
@@ -415,14 +415,14 @@ <h3>4.1.5 <span class="index-def" title="at-rule">
415415

416416
<h3>4.1.6 <a name="block">Blocks</a></h3>
417417

418-
<p> A <a name="x12"><span class="index-inst" title="block"><em>block</em></span></a>
418+
<p> A <a name="x13"><span class="index-inst" title="block"><em>block</em></span></a>
419419
starts with a left curly brace ({) and ends with the matching right
420420
curly brace (}). In between there may be any characters, except that
421421
parentheses ((&nbsp;)), brackets ([&nbsp;]) and braces ({&nbsp;}) must
422422
always occur in
423423
matching pairs and may be nested. Single (') and double quotes (")
424424
must also occur in matching pairs, and characters between them
425-
are parsed as a <a name="x13"><span class="index-inst" title="string">string</span></a>.
425+
are parsed as a <a name="x14"><span class="index-inst" title="string">string</span></a>.
426426
See <a href="#tokenization">Tokenization</a> above for the definition
427427
of a string.
428428
</p>
@@ -447,33 +447,33 @@ <h3><a name="q10">4.1.7 Rule sets, declaration blocks, and selectors</a></h3>
447447
<p> A rule set (also called "rule") consists of a selector followed by
448448
a declaration block.
449449
</p>
450-
<p> A <a name="x14"><span class="index-def"
450+
<p> A <a name="x15"><span class="index-def"
451451
title="declaration-block"><dfn>declaration-block</dfn></span></a> (also
452452
called a {}-block in the following text) starts with a left curly
453453
brace ({) and ends with the matching right curly brace (}). In between
454454
there must be a list of zero or more semicolon-separated (;)
455455
declarations.
456456
</p>
457-
<p>The <a name="x15"><span class="index-def"
457+
<p>The <a name="x16"><span class="index-def"
458458
title="selector"><em>selector</em></span></a> (see also the section on <a
459459
href="selector.html">selectors</a>) consists of everything up to (but
460460
not including) the first left curly brace ({). A selector always goes
461461
together with a {}-block. When a user agent can't parse the selector (i.e., it
462-
is not valid CSS&nbsp;2.1), it must <span class="index-inst" title="ignore"><a name="x16"
462+
is not valid CSS&nbsp;2.1), it must <span class="index-inst" title="ignore"><a name="x17"
463463
href="#ignore">ignore</a></span> the {}-block as well.
464464
</p>
465465
<p>CSS&nbsp;2.1 gives a special meaning to the comma (,) in
466466
selectors. However, since it is not known if the comma may acquire
467467
other meanings in future versions of CSS, the whole statement should
468-
be <span class="index-inst" title="ignore"><a name="x17"
468+
be <span class="index-inst" title="ignore"><a name="x18"
469469
href="#ignore">ignored</a></span> if there is an error anywhere in the
470470
selector, even though the rest of the selector may look reasonable in
471471
CSS&nbsp;2.1.
472472
</p>
473473
<div class=illegal-example><P style="display:none">Illegal example(s):</P>
474474
<p>For example, since the "&amp;" is not a valid token in a CSS&nbsp;2.1
475475
selector, a CSS&nbsp;2.1 user agent must
476-
<span class="index-inst" title="ignore"><a name="x18" href="#ignore">ignore</a></span>
476+
<span class="index-inst" title="ignore"><a name="x19" href="#ignore">ignore</a></span>
477477
the whole second line, and not set the color of H3 to red:
478478
</p>
479479
<pre>
@@ -504,9 +504,9 @@ <h3><a name="q10">4.1.7 Rule sets, declaration blocks, and selectors</a></h3>
504504
<h3>4.1.8 <a name="declaration">Declarations</a> and <a
505505
name="properties">properties</a></h3>
506506

507-
<p> A <a name="x19"><span class="index-def"
507+
<p> A <a name="x20"><span class="index-def"
508508
title="declaration"><dfn>declaration</dfn></span></a> is either empty or
509-
consists of a <a name="x20"><span class="index-inst"
509+
consists of a <a name="x21"><span class="index-inst"
510510
title="property">property</span></a>, followed by a colon (:), followed by
511511
a value. Around each of these there may be <a
512512
href="#whitespace">whitespace</a>.
@@ -550,12 +550,12 @@ <h3>4.1.8 <a name="declaration">Declarations</a> and <a
550550
braces may be nested. Inside the quotes, characters are parsed as a
551551
string.
552552
</p>
553-
<p>The syntax of <a name="x21"><span class="index-def" title="value">values</span></a>
553+
<p>The syntax of <a name="x22"><span class="index-def" title="value">values</span></a>
554554
is specified separately for each property, but in any case, values are
555555
built from identifiers, strings, numbers, lengths, percentages, URIs, and
556556
colors.
557557
</p>
558-
<p>A user agent must <span class="index-inst" title="ignore"><a name="x22"
558+
<p>A user agent must <span class="index-inst" title="ignore"><a name="x23"
559559
href="#ignore">ignore</a></span> a declaration with an invalid property
560560
name or an invalid value. Every CSS&nbsp;2.1 property has its own syntactic
561561
and semantic restrictions on the values it accepts.
@@ -573,7 +573,7 @@ <h3>4.1.8 <a name="declaration">Declarations</a> and <a
573573
<p> The second declaration on the first line has an invalid value
574574
'12pt'. The second declaration on the second line contains an
575575
undefined property 'font-vendor'. The CSS&nbsp;2.1 parser will <span
576-
class="index-inst" title="ignore"><a name="x23" href="#ignore">ignore</a></span> these
576+
class="index-inst" title="ignore"><a name="x24" href="#ignore">ignore</a></span> these
577577
declarations, effectively reducing the style sheet to:
578578
</p>
579579
<pre class="example">
@@ -585,7 +585,7 @@ <h3>4.1.8 <a name="declaration">Declarations</a> and <a
585585

586586
<h3>4.1.9 <a name="comments">Comments</a></h3>
587587

588-
<p><a name="x24"><span class="index-inst" title="comments">Comments </span></a> begin
588+
<p><a name="x25"><span class="index-inst" title="comments">Comments </span></a> begin
589589
with the characters "/*" and end with the characters "*/". They may
590590
occur anywhere between tokens,
591591
and their contents have no influence on the rendering. Comments may
@@ -621,7 +621,7 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
621621

622622
<ul>
623623
<li><strong>Unknown properties.</strong> User agents must <span
624-
class="index-inst" title="ignore"><a name="x26" href="#ignore">ignore</a></span> a <a
624+
class="index-inst" title="ignore"><a name="x27" href="#ignore">ignore</a></span> a <a
625625
href="syndata.html#declaration">declaration</a> with an unknown
626626
property. For example, if the style sheet is:
627627

@@ -646,7 +646,7 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
646646
</pre>
647647

648648
A CSS&nbsp;2.1 parser would honor the first rule and
649-
<span class="index-inst" title="ignore"><a name="x27" href="#ignore">ignore</a></span>
649+
<span class="index-inst" title="ignore"><a name="x28" href="#ignore">ignore</a></span>
650650
the rest, as if the style sheet had been:
651651

652652
<pre class="example">
@@ -676,7 +676,7 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
676676

677677

678678
<li><strong>Invalid at-keywords.</strong> User agents must <span
679-
class="index-inst" title="ignore"><a name="x28" href="#ignore">ignore</a></span> an
679+
class="index-inst" title="ignore"><a name="x29" href="#ignore">ignore</a></span> an
680680
invalid at-keyword together with everything following it, up to and
681681
including the next semicolon (;) or block ({...}), whichever
682682
comes first. For example, consider the following:
@@ -694,8 +694,8 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
694694

695695
<p> The '@three-dee' at-rule is not part of CSS&nbsp;2.1. Therefore, the whole
696696
at-rule (up to, and including, the third right curly brace) is <span
697-
class="index-inst" title="ignore"><a name="x29" href="#ignore">ignored.</a></span> A
698-
CSS&nbsp;2.1 user agent <span class="index-inst" title="ignore"><a name="x30"
697+
class="index-inst" title="ignore"><a name="x30" href="#ignore">ignored.</a></span> A
698+
CSS&nbsp;2.1 user agent <span class="index-inst" title="ignore"><a name="x31"
699699
href="#ignore">ignores</a></span> it, effectively reducing the style sheet
700700
to:</p>
701701

@@ -760,7 +760,7 @@ <h3>4.3.2 <a name="length-units">Lengths</a></h3>
760760
</p>
761761

762762
<p><a name="absrel-units">There are two types of length units:
763-
relative and absolute.</a> <a name="x34"><span class="index-def" title="relative
763+
relative and absolute.</a> <a name="x35"><span class="index-def" title="relative
764764
units"><em>Relative length</em></span></a> units specify a length relative
765765
to another length property. Style sheets that use relative units will
766766
more easily scale from one medium to another (e.g., from a computer
@@ -822,7 +822,7 @@ <h3>4.3.2 <a name="length-units">Lengths</a></h3>
822822
resolution of the viewing device, i.e., most often a computer
823823
display. If the pixel density of the output device is very different
824824
from that of a typical computer display, the user agent should rescale
825-
pixel values. It is recommended that the <a name="x39"><span class="index-def"
825+
pixel values. It is recommended that the <a name="x40"><span class="index-def"
826826
title="reference pixel|pixel"><em>reference pixel</em></span></a> be the
827827
visual angle of one pixel on a device with a pixel density of 96dpi
828828
and a distance from the reader of an arm's length. For a nominal arm's
@@ -880,7 +880,7 @@ <h3>4.3.2 <a name="length-units">Lengths</a></h3>
880880
</pre>
881881
</div>
882882

883-
<p><a name="x41"><span class="index-def" title="absolute length"><em> Absolute
883+
<p><a name="x42"><span class="index-def" title="absolute length"><em> Absolute
884884
length</em></span></a> units are only useful when the physical properties
885885
of the output medium are known. The absolute units are:
886886
</p>
@@ -912,7 +912,7 @@ <h3>4.3.3 <a name="percentage-units">Percentages</a></h3>
912912
name="value-def-percentage"
913913
class="value-def">&lt;percentage&gt;</a></span> in this specification)
914914
is a <span class="index-inst"
915-
title="&lt;number&gt;"><a name="x43" href="syndata.html#value-def-number" class="noxref"><span
915+
title="&lt;number&gt;"><a name="x44" href="syndata.html#value-def-number" class="noxref"><span
916916
class="value-inst-number">&lt;number&gt;</span></a></span> immediately
917917
followed by '%'.
918918
</p>
@@ -944,13 +944,13 @@ <h3>4.3.3 <a name="percentage-units">Percentages</a></h3>
944944

945945
<h3>4.3.4 <a name="uri">URL + URN = URI</a></h3>
946946

947-
<p><a name="x44"><span class="index-def" title="Uniform Resource Locator (URL)|URL
947+
<p><a name="x45"><span class="index-def" title="Uniform Resource Locator (URL)|URL
948948
(Uniform Resource Locator)">URLs</span></a> (Uniform Resource Locators,
949949
see <a href="refs.html#ref-RFC1738" rel="biblioentry" class="noxref"><span class="normref">[RFC1738]</span></a> and <a href="refs.html#ref-RFC1808" rel="biblioentry" class="noxref"><span class="normref">[RFC1808]</span></a>) provide the address of a resource on
950-
the Web. Another way of identifying resources is called <a name="x46"><span
950+
the Web. Another way of identifying resources is called <a name="x47"><span
951951
class="index-def" title="URN (Uniform Resource Name)|Uniform Resource
952952
Name (URN)">URN</span></a> (Uniform Resource Name). Together they are
953-
called <a name="x48"><span class="index-def" title="Resource Identifier (URI)|URI
953+
called <a name="x49"><span class="index-def" title="Resource Identifier (URI)|URI
954954
(Uniform Resource Identifier)">URIs</span></a> (Uniform Resource
955955
Identifiers, see <a href="refs.html#ref-URI" rel="biblioentry" class="noxref"><span class="normref">[URI]</span></a>). This specification uses the term URI.
956956
</p>
@@ -1025,7 +1025,7 @@ <h3>4.3.5 <a name="counter">Counters</a></h3>
10251025
class="propinst-counter-increment">'counter-increment'</span></a> and
10261026
<a href="generate.html#propdef-counter-reset" class="noxref"><span class="propinst-counter-reset">'counter-reset'</span></a>
10271027
properties). To refer to the value of a counter, the notation
1028-
<a name="x52"><span class="index-def" title="counter()">
1028+
<a name="x53"><span class="index-def" title="counter()">
10291029
'counter(&lt;identifier&gt;)'</span></a> or 'counter(&lt;identifier&gt;,
10301030
&lt;list-style-type&gt;)' is used. The default style is 'decimal'.
10311031
</p>
@@ -1194,7 +1194,7 @@ <h3>4.3.7 <a name="strings">Strings</a></h3>
11941194
</pre>
11951195
</div>
11961196

1197-
<p>A string cannot directly contain a <a name="x55"><span class="index-inst"
1197+
<p>A string cannot directly contain a <a name="x56"><span class="index-inst"
11981198
title="newline">newline</span></a>.
11991199
To include a newline in a string, use an escape representing the line feed
12001200
character in Unicode (U+000A), such as "\A" or "\00000a".
@@ -1242,7 +1242,7 @@ <h2><a name="q23">4.4 CSS style sheet representation</a></h2>
12421242

12431243
<p>A CSS style sheet is a sequence of characters from the Universal
12441244
Character Set (see <a href="refs.html#ref-ISO10646" rel="biblioentry" class="noxref"><span class="normref">[ISO10646]</span></a>). For transmission and
1245-
storage, these characters must be <a name="x56"><span class="index-def"
1245+
storage, these characters must be <a name="x57"><span class="index-def"
12461246
title="character encoding">encoded</span></a> by a character encoding that
12471247
supports the set of characters available in US-ASCII (e.g., UTF-8, ISO
12481248
8859-x, SHIFT JIS, etc.). For a good introduction to character sets
@@ -1255,29 +1255,30 @@ <h2><a name="q23">4.4 CSS style sheet representation</a></h2>
12551255
character encoding of the whole document.
12561256
</p>
12571257
<p>When a style sheet resides in a separate file, user agents must
1258-
observe the following <a name="x57"><span class="index-inst" title="character
1258+
observe the following <a name="x58"><span class="index-inst" title="character
12591259
encoding::user agent's determination of">priorities</span></a> when
1260-
determining a style sheet's <a name="x58"><span class="index-inst" title="character
1260+
determining a style sheet's <a name="x59"><span class="index-inst" title="character
12611261
encoding::default|default::character encoding">character
12621262
encoding</span></a> (from highest priority to lowest):
12631263
</p>
12641264
<ol>
12651265
<li>An HTTP "charset" parameter in a "Content-Type" field
12661266
(or similar parameters in other protocols)</li>
1267-
<li>BOM and/or @charset (see below)</li>
1267+
<li><a name="x61"><span class="index-inst">BOM</span></a> and/or <a name="x62"><span
1268+
class="index-inst">@charset</span></a> (see below)</li>
12681269
<li><code>&lt;link charset=""&gt;</code> or other metadata from the linking mechanism (if any)</li>
12691270
<li>charset of referring stylesheet or document (if any)</li>
12701271
<li>Assume UTF-8</li>
12711272
</ol>
12721273

1273-
<p>Authors using an @charset rule must place the rule at the very
1274-
beginning of the style sheet, preceded by no characters. (If a byte
1275-
order mark is appropriate for the encoding used, it may precede the
1276-
@charset rule.)
1274+
<p>Authors using an <a name="x63"><span class="index-inst">@charset</span></a> rule must
1275+
place the rule at the very beginning of the style sheet, preceded by
1276+
no characters. (If a byte order mark is appropriate for the encoding
1277+
used, it may precede the @charset rule.)
12771278
</p>
12781279

1279-
<p>After "@charset", authors specify the name of a character encoding
1280-
(in quotes). For example:
1280+
<p>After <a name="x64"><span class="index-def">"@charset"</span></a>, authors specify
1281+
the name of a character encoding (in quotes). For example:
12811282
</p>
12821283

12831284
<pre class="example">@charset "ISO-8859-1";</pre>
@@ -1293,10 +1294,11 @@ <h2><a name="q23">4.4 CSS style sheet representation</a></h2>
12931294
registry.
12941295
</p>
12951296

1296-
<p>User agents must support at least the UTF-8 encoding.
1297+
<p>User agents must support at least the <a name="x65"><span
1298+
class="index-inst">UTF-8</span></a> encoding.
12971299

12981300
<p>User agents must ignore any @charset rule not at the beginning of the
1299-
style sheet. When user agents detect the character encoding using the
1301+
style sheet. When user agents detect the character encoding using the
13001302
BOM and/or the @charset rule, they should follow the following rules:
13011303
</p>
13021304

css2/tables.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,12 +1226,14 @@ <h4> <a name="empty-cells">Borders and Backgrounds around empty cells:</a> the <
12261226
rendering of borders and backgrounds around cells that have no visible
12271227
content. Empty cells and cells with the <a href="visufx.html#propdef-visibility" class="noxref"><span
12281228
class="propinst-visibility">'visibility'</span></a> property set to
1229-
'hidden' are considered to have no visible content. Visible content
1230-
includes "&amp;nbsp;" and other whitespace except ASCII CR ("\0D"), LF
1231-
("\0A"), tab ("\09"), and space ("\20"). Cells are empty if they
1232-
contain no in-flow nor floating content other than whitespace that has
1233-
been collapsed away by the <a href="text.html#propdef-white-space" class="noxref"><span
1229+
'hidden' are considered to have no visible content.
1230+
Cells are empty unless they contain one or more of the following:
1231+
<ul>
1232+
<li>floating content (including empty elements),
1233+
<li>in-flow content (including empty elements) other than whitespace
1234+
that has been collapsed away by the <a href="text.html#propdef-white-space" class="noxref"><span
12341235
class="propinst-white-space">'white-space'</span></a> property handling.
1236+
</ul>
12351237

12361238
<p>When this property has the value 'show', borders and backgrounds
12371239
are drawn around/behind empty cells (like normal cells).

0 commit comments

Comments
 (0)