Skip to content

Commit 24e8014

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

9 files changed

Lines changed: 83 additions & 47 deletions

File tree

css2/cascade.html

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -315,27 +315,29 @@ <H3>6.4.1 <a name="cascading-order">Cascading order</a></H3>
315315
Declarations apply if the associated selector <A
316316
HREF="selector.html">matches</A> the element in question.
317317

318-
<LI>Sort by importance (normal or important) and origin (author, user, or user agent). In ascending order:
318+
<LI>Sort according to importance (normal or important)
319+
and origin (author, user, or user agent). In ascending order of
320+
precendence:
319321

320322
<ol>
321-
<li>user agent style sheets
322-
<li>user normal style sheets
323-
<li>author normal style sheets
324-
<li>author important style sheets
325-
<li>user important style sheets
323+
<li>user agent declarations
324+
<li>user normal declarations
325+
<li>author normal declarations
326+
<li>author important declarations
327+
<li>user important declarations
326328
</ol>
327329

328330
<LI>
329-
Sort by <a href="#specificity">specificity</a>
331+
Sort rules with the same importance and origin by <a href="#specificity">specificity</a>
330332
of selector: more specific
331333
selectors will override more general ones. Pseudo-elements and
332334
pseudo-classes are counted as normal elements and classes,
333335
respectively.
334336

335-
<LI> Finally, sort by order specified: if two rules have the same
336-
weight, origin and specificity,
337-
the latter specified wins. Rules in imported style sheets are
338-
considered to be before any rules in the style sheet itself.
337+
<LI>Finally, sort by order specified: if two declarations have the
338+
same weight, origin and specificity, the latter specified wins.
339+
Declarations in imported style sheets are considered to be before any
340+
declarations in the style sheet itself.
339341

340342
</OL>
341343

css2/changes.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ <H1><a name="q0">Appendix C. Changes</a></H1>
140140
five groups: known errors, typographical errors, clarifications,
141141
changes and additions. Typographical errors are not listed here.</P>
142142

143+
<p>This chapter is not a complete list of changes. For changes not
144+
listed here, please see the "disposition of comments" document that is
145+
published at the time this specification becomes a Candidate
146+
Recommendation.
147+
143148

144149
<h2>C.1 <a name="new">Additional property values</a></h2>
145150

css2/colors.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,26 @@ <h3>14.2.1 <a name="background-properties">Background properties</a>: <a href="c
219219
</pre>
220220
</div>
221221

222+
<p>Intrinsic dimensions expressed as percentages must be resolved
223+
relative to the dimensions of the rectangle that establishes the
224+
coordinate system for the <a href="colors.html#propdef-background-position" class="noxref"><span
225+
class="propinst-background-position">'background-position'</span></a>
226+
property.
227+
</p>
228+
<p>If the image has no intrinsic dimensions and has an intrinsic ratio
229+
the dimensions must be assumed to be the largest dimensions at that
230+
ratio such that neither dimension exceeds the dimensions of the
231+
rectangle that establishes the coordinate system for the <a href="colors.html#propdef-background-position" class="noxref"><span
232+
class="propinst-background-position">'background-position'</span></a>
233+
property.
234+
</p>
235+
<p>If the image has no intrinsic ratio either, then the dimensions
236+
must be assumed to be the rectangle that establishes the coordinate
237+
system for the <a href="colors.html#propdef-background-position" class="noxref"><span
238+
class="propinst-background-position">'background-position'</span></a>
239+
property.
240+
</p>
241+
222242
<div class="propdef">
223243
<dl><dt>
224244
<span class="index-def" title="'background-repeat'"><a name="propdef-background-repeat" class="propdef-title"><strong>'background-repeat'</strong></a></span>

css2/generate.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ <h2>12.2 <a name="content">The</a> <a href="generate.html#propdef-content" class
229229
<dt><span class="index-inst" title="&lt;uri&gt;"><a name="x12" href="syndata.html#value-def-uri" class="noxref"><span
230230
class="value-inst-uri"><strong>&lt;uri&gt;</strong></span></a></span>
231231
<dd>The value is a URI that designates an external resource (such as an image).
232-
If a user agent cannot display the resource it must ignore it.
232+
If the user agent cannot display the resource it must either leave
233+
it out as if it were not specified or display some indication that
234+
the resource cannot be displayed.
233235

234236
<dt><span class="index-inst" title="&lt;counter&gt;"><a name="x13" href="syndata.html#value-def-counter" class="noxref"><span
235237
class="value-inst-counter"><strong>&lt;counter&gt;</strong></span></a></span>

css2/grammar.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h2><a name="q1">G.1 Grammar</a></h2>
6666

6767
<pre>
6868
stylesheet
69-
: [ CHARSET_SYM S* STRING S* ';' ]?
69+
: [ CHARSET_SYM STRING ';' ]?
7070
[S|CDO|CDC]* [ import [S|CDO|CDC]* ]*
7171
[ [ ruleset | media | page ] [S|CDO|CDC]* ]*
7272
;
@@ -182,14 +182,15 @@ <h2><a name="q2">G.2 Lexical scanner</a></h2>
182182
invalid1 \"([^\n\r\f\\"]|\\{nl}|{escape})*
183183
invalid2 \'([^\n\r\f\\']|\\{nl}|{escape})*
184184

185+
comment \/\*[^*]*\*+([^/*][^*]*\*+)*\/
185186
ident -?{nmstart}{nmchar}*
186187
name {nmchar}+
187188
num [0-9]+|[0-9]*"."[0-9]+
188189
string {string1}|{string2}
189190
invalid {invalid1}|{invalid2}
190191
url ([!#$%&amp;*-~]|{nonascii}|{escape})*
191192
s [ \t\r\n\f]
192-
w {s}*
193+
w ({s}|{comment})*
193194
nl \n|\r\n|\r|\f
194195

195196
A a|\\0{0,4}(41|61)(\r\n|[ \t\r\n\f])?
@@ -211,7 +212,7 @@ <h2><a name="q2">G.2 Lexical scanner</a></h2>
211212

212213
%%
213214

214-
{s}+ {return S;}
215+
{s} {return S;}
215216

216217
\/\*[^*]*\*+([^/*][^*]*\*+)*\/ /* ignore comments */
217218
{s}+\/\*[^*]*\*+([^/*][^*]*\*+)*\/ {unput(' '); /*replace by space*/}
@@ -236,7 +237,7 @@ <h2><a name="q2">G.2 Lexical scanner</a></h2>
236237
"@import" {return IMPORT_SYM;}
237238
"@page" {return PAGE_SYM;}
238239
"@media" {return MEDIA_SYM;}
239-
"@charset" {return CHARSET_SYM;}
240+
"@charset " {return CHARSET_SYM;}
240241

241242
"!"{w}"important" {return IMPORTANT_SYM;}
242243

css2/propidx.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ <H1><a name="q0">Appendix F. Full property table</a></H1>
429429
<a href="box.html#propdef-margin-left"><span class="propinst-margin-left xref">'margin-left'</span></a>
430430
<td><a href="box.html#value-def-margin-width" class="noxref"><span class="value-inst-margin-width">&lt;margin-width&gt;</span></a> | <a href="cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit">inherit</span></a>
431431
<td>0
432-
<td>all elements except elements with table display types other than table and inline-table
432+
<td>all elements except elements with table display types other than table-caption, table and inline-table
433433
<td>no
434434
<td>refer to width of containing block
435435
<td><a href="media.html#visual-media-group">visual</a>
@@ -438,15 +438,15 @@ <H1><a name="q0">Appendix F. Full property table</a></H1>
438438
<a href="box.html#propdef-margin-bottom"><span class="propinst-margin-bottom xref">'margin-bottom'</span></a>
439439
<td><a href="box.html#value-def-margin-width" class="noxref"><span class="value-inst-margin-width">&lt;margin-width&gt;</span></a> | <a href="cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit">inherit</span></a>
440440
<td>0
441-
<td>all elements except elements with table display types other than table and inline-table
441+
<td>all elements except elements with table display types other than table-caption, table and inline-table
442442
<td>no
443443
<td>refer to width of containing block
444444
<td><a href="media.html#visual-media-group">visual</a>
445445

446446
<tr><td><a href="box.html#propdef-margin"><span class="propinst-margin xref">'margin'</span></a>
447447
<td><a href="box.html#value-def-margin-width" class="noxref"><span class="value-inst-margin-width">&lt;margin-width&gt;</span></a>{1,4} | <a href="cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit">inherit</span></a>
448448
<td>see individual properties
449-
<td>all elements except elements with table display types other than table and inline-table
449+
<td>all elements except elements with table display types other than table-caption, table and inline-table
450450
<td>no
451451
<td>refer to width of containing block
452452
<td><a href="media.html#visual-media-group">visual</a>
@@ -537,15 +537,15 @@ <H1><a name="q0">Appendix F. Full property table</a></H1>
537537
<a href="box.html#propdef-padding-left"><span class="propinst-padding-left xref">'padding-left'</span></a>
538538
<td><a href="box.html#value-def-padding-width" class="noxref"><span class="value-inst-padding-width">&lt;padding-width&gt;</span></a> | <a href="cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit">inherit</span></a>
539539
<td>0
540-
<td>all elements except elements with table display types other than table, inline-table, and table-cell
540+
<td>all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column
541541
<td>no
542542
<td>refer to width of containing block
543543
<td><a href="media.html#visual-media-group">visual</a>
544544

545545
<tr><td><a href="box.html#propdef-padding"><span class="propinst-padding xref">'padding'</span></a>
546546
<td><a href="box.html#value-def-padding-width" class="noxref"><span class="value-inst-padding-width">&lt;padding-width&gt;</span></a>{1,4} | <a href="cascade.html#value-def-inherit" class="noxref"><span class="value-inst-inherit">inherit</span></a>
547547
<td>see individual properties
548-
<td>all elements except elements with table display types other than table, inline-table, and table-cell
548+
<td>all elements except table-row-group, table-header-group, table-footer-group, table-row, table-column-group and table-column
549549
<td>no
550550
<td>refer to width of containing block
551551
<td><a href="media.html#visual-media-group">visual</a>

css2/syndata.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ <h3>4.1.2 <a name="keywords">Keywords</a></h3>
212212
"red"
213213
</pre>
214214

215-
is not. (It is a <a href="#strings">string</a>.) Other illegal examples:
215+
<p>is not. (It is a <a href="#strings">string</a>.) Other illegal examples:
216216

217217
<div class="illegal-example"><P style="display:none">Illegal example(s):</P>
218218
<pre><code>
@@ -321,7 +321,7 @@ <h3><a name="q6">4.1.3 Characters and case</a></h3>
321321
stand for the ISO 10646 (<a href="refs.html#ref-ISO10646" rel="biblioentry" class="noxref"><span class="normref">[ISO10646]</span></a>)
322322
character with that number, which must not be zero.
323323
(It is undefined in CSS&nbsp;2.1 what happens if a style sheet
324-
<em>does</em> contain a zero.)
324+
<em>does</em> contain a character with Unicode codepoint zero.)
325325
If a character in the range [0-9a-fA-F] follows the hexadecimal number,
326326
the end of the number needs to be made clear. There are two ways
327327
to do that:
@@ -339,7 +339,8 @@ <h3><a name="q6">4.1.3 Characters and case</a></h3>
339339
escaped or doubled.
340340
</p>
341341
</li>
342-
<li>Backslash escapes are always considered to be part of an <a
342+
<li class=note>Note: Backslash escapes, where allowed, are always
343+
considered to be part of an <a
343344
href="#value-def-identifier">identifier</a> or a string (i.e.,
344345
"\7B" is not punctuation, even though "{" is, and "\32" is allowed
345346
at the start of a class name, even though "2" is not).

css2/tables.html

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -707,16 +707,16 @@ <h3>17.5.1 <a name="table-layers">Table layers and transparency</a></h3>
707707
extends from the top of the cells in the top row to the bottom of
708708
the cells on the bottom row and from the left edge of its leftmost
709709
column to the right edge of its rightmost column. The background
710-
extends to cover the full area of all cells that originate in the
711-
column group, but this extension does not affect background image
712-
positioning.
710+
covers exactly the full area of all cells that originate in the
711+
column group, even if they span outside the column group, but this
712+
difference in area does not affect background image positioning.
713713

714714
<li>On top of the column groups are the areas representing the
715715
column boxes. Each column is as tall as the column groups and as
716716
wide as a normal (single-column-spanning) cell in the column. The
717-
background extends to cover the full area of all cells that
718-
originate in the column, even if they span outside the column, but
719-
this extension does not affect background image positioning.
717+
background covers exactly the full area of all cells that originate
718+
in the column, even if they span outside the column, but this
719+
difference in area does not affect background image positioning.
720720

721721
<li>Next is the layer containing the row groups. Each row group
722722
extends from the top left corner of its topmost cell in the first
@@ -725,14 +725,17 @@ <h3>17.5.1 <a name="table-layers">Table layers and transparency</a></h3>
725725

726726
<li>The next to last layer contains the rows. Each row is as wide as
727727
the row groups and as tall as a normal (single-row-spanning) cell in
728-
the row. As with columns, the background extends to cover the full
728+
the row. As with columns, the background covers exactly the full
729729
area of all cells that originate in the row, even if they span
730-
outside the row, but this extension does not affect background
731-
image positioning.
730+
outside the row, but this difference in area does not affect
731+
background image positioning.
732732

733733
<li>The topmost layer contains the cells themselves. As the figure
734734
shows, although all rows contain the same number of cells, not every
735-
cell may have specified content. If the value of their <a href="tables.html#propdef-empty-cells" class="noxref"><span
735+
cell may have specified content.
736+
In the <a href="#separated-borders">separated borders model</a>
737+
(<a href="tables.html#propdef-border-collapse" class="noxref"><span class="propinst-border-collapse">'border-collapse'</span></a> is
738+
'separate'), if the value of their <a href="tables.html#propdef-empty-cells" class="noxref"><span
736739
class="propinst-empty-cells">'empty-cells'</span></a> property is 'hide'
737740
these "empty" cells are transparent through the cell, row, row
738741
group, column and column group backgrounds, letting the table
@@ -744,31 +747,33 @@ <h3>17.5.1 <a name="table-layers">Table layers and transparency</a></h3>
744747
as if an anonymous table-cell box occupied their position in the grid.
745748

746749
<div class="html-example">
747-
<p>In the following example, the first row contains four cells, but
748-
the second row contains no cells, and thus the table background shines
749-
through, except where a cell from the first row spans into this row.
750-
The following HTML code and style rules.
750+
<p>In the following example, the first row contains four non-empty
751+
cells, but the second row contains only one non-empty cell, and thus
752+
the table background shines through, except where a cell from the
753+
first row spans into this row. The following HTML code and style rules
751754

752755
<pre>
753756
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
754757
&lt;HTML&gt;
755758
&lt;HEAD&gt;
756759
&lt;TITLE&gt;Table example&lt;/TITLE&gt;
757760
&lt;STYLE type="text/css"&gt;
758-
TABLE { background: #ff0; border: solid black;
759-
empty-cells: hide }
760-
TD { background: red; border: solid black }
761+
TABLE { background: #ff0; border: solid black;
762+
empty-cells: hide }
763+
TR.top { background: red }
764+
TD { border: solid black }
761765
&lt;/STYLE&gt;
762766
&lt;/HEAD&gt;
763767
&lt;BODY&gt;
764768
&lt;TABLE&gt;
765-
&lt;TR&gt;
769+
&lt;TR CLASS="top"&gt;
766770
&lt;TD&gt; 1
767771
&lt;TD rowspan="2"&gt; 2
768772
&lt;TD&gt; 3
769773
&lt;TD&gt; 4
770-
&lt;/TR&gt;
771-
&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;
774+
&lt;TR&gt;
775+
&lt;TD&gt; 5
776+
&lt;TD&gt;
772777
&lt;/TABLE&gt;
773778
&lt;/BODY&gt;
774779
&lt;/HTML&gt;
@@ -781,7 +786,7 @@ <h3>17.5.1 <a name="table-layers">Table layers and transparency</a></h3>
781786
in bottom row"><SPAN class="dlink">&nbsp;&nbsp;&nbsp;<A name="img-tbl-empty" href="images/longdesc/tbl-empty-desc.html" title="Long description of example illustrating background calculation
782787
">[D]</A></SPAN>
783788

784-
<p class="caption">Table with three empty cells in the bottom row.
789+
<p class="caption">Table with empty cells in the bottom row.
785790
</div>
786791
</div>
787792

css2/text.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ <h3>16.3.1 <a name="lining-striking-props">Underlining, overlining, striking, an
239239
'inline-block' descendants.
240240
</p><p>
241241
If an element contains no text (ignoring white space in elements
242-
that have 'white-space' set to 'normal', 'pre-line', or 'no-wrap'),
242+
that have 'white-space' set to 'normal', 'pre-line', or 'nowrap'),
243243
user agents must refrain from rendering text decorations on the
244244
element. For example, elements containing only images and collapsed
245245
white space will not be underlined.
@@ -577,7 +577,7 @@ <h3 id="white-space-model"><a name="q8">16.6.1 The 'white-space' processing mode
577577
<li>
578578
Each tab (U+0009), carriage return (U+000D), or space (U+0020)
579579
character surrounding a linefeed (U+000A) character is removed if
580-
'white-space' is set to 'normal', 'no-wrap', or 'pre-line'.
580+
'white-space' is set to 'normal', 'nowrap', or 'pre-line'.
581581
</li>
582582
<li>If 'white-space' is set to 'pre' or 'pre-wrap', any sequence of
583583
spaces (U+0020) unbroken by an element boundary is treated as a

0 commit comments

Comments
 (0)