Skip to content

Commit d9dccff

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

25 files changed

Lines changed: 434 additions & 326 deletions

css2/css2.html

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2938,7 +2938,8 @@ <h3>4.1.7 <a name="rule-sets">Rule sets, declaration blocks, and selectors</a></
29382938
not including) the first left curly brace ({). A selector always goes
29392939
together with a declaration block. When a user agent can't parse the selector (i.e., it
29402940
is not valid CSS&nbsp;2.1), it must <span class="index-inst" title="ignore"><a name="x16"
2941-
href="#ignore">ignore</a></span> the declaration block as well.
2941+
href="#ignore">ignore</a></span> the selector and the following
2942+
declaration block (if any) as well.
29422943
</p>
29432944
<p>CSS&nbsp;2.1 gives a special meaning to the comma (,) in
29442945
selectors. However, since it is not known if the comma may acquire
@@ -3137,11 +3138,11 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
31373138
<p>A user agent conforming to a future CSS specification may accept one or
31383139
more of the other rules as well.</p>
31393140
</li>
3140-
<li><strong>Malformed statements.</strong> User agents must handle
3141-
unexpected tokens encountered while parsing a statement by reading
3142-
until the end of the statement, while observing the rules for matching
3141+
<li><strong>Malformed declarations.</strong> User agents must handle
3142+
unexpected tokens encountered while parsing a declaration by reading
3143+
until the end of the declaration, while observing the rules for matching
31433144
pairs of (), [], {}, "", and '', and correctly handling escapes. For
3144-
example, a malformed statement may be missing a property, colon (:) or
3145+
example, a malformed declaration may be missing a property, colon (:) or
31453146
value. The following are all equivalent:
31463147

31473148

@@ -3159,9 +3160,10 @@ <h2>4.2 <a name="parsing-errors">Rules for handling parsing
31593160

31603161

31613162
<li><strong>Invalid at-keywords.</strong> User agents must <span
3162-
class="index-inst" title="ignore"><a name="x28" href="#ignore">ignore</a></span> an
3163-
invalid at-keyword together with everything following it, up to and
3164-
including the next semicolon (;) or block ({...}), whichever
3163+
class="index-inst" title="ignore"><a name="x28" href="#ignore">ignore</a></span>
3164+
an invalid at-keyword together with everything following it, up to and
3165+
including the next semicolon (;), the next block ({...}), or the end
3166+
of the block (}) that contains the invalid at-keyword, whichever
31653167
comes first. For example, consider the following:
31663168

31673169
<pre class="illegal-example"><code>
@@ -5654,6 +5656,18 @@ <H2>6.3 <a name="at-import">The @import rule</a></h2>
56545656

56555657
<p>In the absence of any media types, the import is
56565658
unconditional. Specifying 'all' for the medium has the same effect.
5659+
The import only takes effect if the target medium matches the media
5660+
list.
5661+
5662+
<p>A target medium matches a media list if one of the items in the
5663+
media list is the target medium or 'all'.
5664+
5665+
<p class=note>Note that Media Queries <a href="refs.html#ref-MEDIAQ" rel="biblioentry" class="noxref"><span class="informref">[MEDIAQ]</span></a> extends the syntax of
5666+
media lists and the definition of matching.
5667+
5668+
<p>When the same style sheet is imported or linked to a document in
5669+
multiple places, user agents must process (or act as though they do)
5670+
each link as though the link were to a separate style sheet.
56575671

56585672
<H2>6.4 <a name="cascade">The cascade</a></h2>
56595673

@@ -5713,7 +5727,10 @@ <H3>6.4.1 <a name="cascading-order">Cascading order</a></H3>
57135727
Find all declarations that apply to the element and property in
57145728
question, for the target <a href="media.html">media type</a>.
57155729
Declarations apply if the associated selector <A
5716-
HREF="selector.html">matches</A> the element in question.
5730+
HREF="selector.html">matches</A> the element in question and the
5731+
target medium matches the media list on all @media rules
5732+
containing the declaration and on all links on the path through
5733+
which the style sheet was reached.
57175734

57185735
<LI>Sort according to importance (normal or important)
57195736
and origin (author, user, or user agent). In ascending order of
@@ -10031,7 +10048,7 @@ <h3>10.3.2 <a name="inline-replaced-width">Inline, replaced elements</a></h3>
1003110048
<p>Percentage intrinsic widths are first evaluated with respect to the
1003210049
containing block's width, if that width doesn't itself depend on the
1003310050
replaced element's width. If it does, then the resulting layout is
10034-
undefined in CSS2.1.
10051+
undefined in CSS&nbsp;2.1.
1003510052

1003610053

1003710054
<h3>10.3.3 <a name="blockwidth">Block-level, non-replaced elements in normal
@@ -10732,7 +10749,9 @@ <h3>10.6.4 <a name="abs-non-replaced-height">Absolutely positioned, non-replaced
1073210749
the top margin edge of a hypothetical box that would have been the
1073310750
first box of the element if its specified <a href="visuren.html#propdef-position" class="noxref"><span
1073410751
class="propinst-position">'position'</span></a> value had been 'static'
10735-
and its specified 'float' had been 'none'. (Note that due to the rules
10752+
and its specified <a href="visuren.html#propdef-float" class="noxref"><span class="propinst-float">'float'</span></a> had been
10753+
'none' and <a href="visuren.html#propdef-clear" class="noxref"><span class="propinst-clear">'clear'</span></a> had been
10754+
'none'. (Note that due to the rules
1073610755
in <a href="visuren.html#dis-pos-flo">section&nbsp;9.7</a> this might
1073710756
require also assuming a different computed value for 'display'.)
1073810757
The value is negative if the hypothetical box is above the containing
@@ -14626,15 +14645,11 @@ <h2>15.6 <a name="font-boldness">Font boldness</a>: the
1462614645
</p>
1462714646
<ul>
1462814647
<li>'bolder' selects the next weight that is assigned to a font that
14629-
is darker than the inherited one. If there is no such weight, it
14630-
simply results in the next darker numerical value (and the font
14631-
remains unchanged), unless the inherited value was '900' in which case
14632-
the resulting weight is also '900'.
14648+
is darker than the inherited one.
1463314649
</li>
1463414650
<li>'lighter' is similar, but works in the opposite direction: it
1463514651
selects the next lighter keyword with a different font from the
14636-
inherited one, unless there is no such font, in which case it selects
14637-
the next lighter numerical value (and keeps the font unchanged).
14652+
inherited one.
1463814653
</li>
1463914654
</ul>
1464014655

@@ -19058,6 +19073,13 @@ <H2><a name="q2">B.2 Informative references</a></H2>
1905819073
Available at <a href="http://www.w3.org/TR/2001/REC-MathML2-20010221/">
1905919074
http://www.w3.org/TR/2001/REC-MathML2-20010221</a>
1906019075

19076+
<dt><strong><a name="ref-MEDIAQ" class="informref">[MEDIAQ]</a></strong>
19077+
<dd>"Media Queries", Håkon Wium Lie, Tantek Çelik, Daniel Glazman,
19078+
Anne van Kesteren, 28 March 2008<br>
19079+
(Work in progress.) Available at <a
19080+
href="http://www.w3.org/TR/2008/CR-css3-mediaqueries-20080328/">
19081+
http://www.w3.org/TR/2008/CR-css3-mediaqueries-20080328</a>
19082+
1906119083
<dt><strong><a name="ref-P3P" class="informref">[P3P]</a></strong>
1906219084
<dd>"The Platform for Privacy Preferences 1.0 (P3P1.0) Specification",
1906319085
L. Cranor, M. Langheinrich, M. Marchiori, M. Presler-Marshall,

css2/diffs-rec/cascade.html

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,18 @@ <H2>6.3 <a name="at-import">The @import rule</a></h2>
255255

256256
<p>In the absence of any media types, the import is
257257
unconditional. Specifying 'all' for the medium has the same effect.
258+
<ins>The</ins> <ins>import</ins> <ins>only</ins> <ins>takes</ins> <ins>effect</ins> <ins>if</ins> <ins>the</ins> <ins>target</ins> <ins>medium</ins> <ins>matches</ins> <ins>the</ins> <ins>media</ins>
259+
<ins>list.</ins>
260+
261+
<p><ins>A</ins> <ins>target</ins> <ins>medium</ins> <ins>matches</ins> <ins>a</ins> <ins>media</ins> <ins>list</ins> <ins>if</ins> <ins>one</ins> <ins>of</ins> <ins>the</ins> <ins>items</ins> <ins>in</ins> <ins>the</ins>
262+
<ins>media</ins> <ins>list</ins> <ins>is</ins> <ins>the</ins> <ins>target</ins> <ins>medium</ins> <ins>or</ins> <ins>'all'.</ins>
263+
264+
<p class=note><ins>Note</ins> <ins>that</ins> <ins>Media</ins> <ins>Queries</ins> <a href="refs.html#ref-MEDIAQ" rel="biblioentry" class="noxref"><span class="informref"><ins>[MEDIAQ]</ins></span></a> <ins>extends</ins> <ins>the</ins> <ins>syntax</ins> <ins>of</ins>
265+
<ins>media</ins> <ins>lists</ins> <ins>and</ins> <ins>the</ins> <ins>definition</ins> <ins>of</ins> <ins>matching.</ins>
266+
267+
<p><ins>When</ins> <ins>the</ins> <ins>same</ins> <ins>style</ins> <ins>sheet</ins> <ins>is</ins> <ins>imported</ins> <ins>or</ins> <ins>linked</ins> <ins>to</ins> <ins>a</ins> <ins>document</ins> <ins>in</ins>
268+
<ins>multiple</ins> <ins>places,</ins> <ins>user</ins> <ins>agents</ins> <ins>must</ins> <ins>process</ins> <ins>(or</ins> <ins>act</ins> <ins>as</ins> <ins>though</ins> <ins>they</ins> <ins>do)</ins>
269+
<ins>each</ins> <ins>link</ins> <ins>as</ins> <ins>though</ins> <ins>the</ins> <ins>link</ins> <ins>were</ins> <ins>to</ins> <ins>a</ins> <ins>separate</ins> <ins>style</ins> <ins>sheet.</ins>
258270

259271
<H2>6.4 <a name="cascade">The cascade</a></h2>
260272

@@ -285,8 +297,8 @@ <H2>6.4 <a name="cascade">The cascade</a></h2>
285297
font). See <a href="sample.html"> <del>"A</del><ins>A</ins> sample style sheet for HTML
286298
</a> <del>4.0"</del>for a recommended default style sheet for HTML <del>4.0</del>documents.
287299

288-
<p class="note"> <del>Note</del> <del>that</del> <del>the</del> <del>default</del> <del>style</del> <del>sheet</del> <del>may</del> <del>change</del> <del>if</del> <del>system</del> <del>settings</del> <del>are</del> <del>modified</del> <del>by</del><ins>Note</ins> <ins>that</ins> the user <del>(e.g.,</del><ins>may</ins> <ins>modify</ins> system <del>colors).</del><ins>settings</ins> <ins>(e.g.</ins>
289-
<ins>system</ins> <ins>colors)</ins> <ins>that</ins> <ins>affect</ins> <ins>the</ins> <ins>default</ins> <ins>style</ins> <ins>sheet.</ins> However, <del>due</del> <del>to</del> <del>limitations</del> <del>in</del> <del>a</del><ins>some</ins> user
300+
<p class="note">Note that the <del>default</del> <del>style</del> <del>sheet</del><ins>user</ins> may <del>change</del> <del>if</del><ins>modify</ins> system settings <del>are</del> <del>modified</del> <del>by</del> <del>the</del> <del>user</del> <del>(e.g.,</del><ins>(e.g.</ins>
301+
system <del>colors).</del><ins>colors)</ins> <ins>that</ins> <ins>affect</ins> <ins>the</ins> <ins>default</ins> <ins>style</ins> <ins>sheet.</ins> However, <del>due</del> <del>to</del> <del>limitations</del> <del>in</del> <del>a</del><ins>some</ins> user
290302
<del>agent's</del> <del>internal</del> <del>implementation,</del><ins>agent</ins> <ins>implementations</ins> <ins>make</ins> it <del>may</del> <del>be</del>impossible to change the values in the
291303
default style sheet.
292304
</ul>
@@ -314,14 +326,17 @@ <H3> <del>Imported</del> <del>style</del> <del>sheets</del> <del>also</del> <del
314326
Find all declarations that apply to the element and property in
315327
question, for the target <a href="media.html">media type</a>.
316328
Declarations apply if the associated selector <A
317-
HREF="selector.html">matches</A> the element in question.
329+
HREF="selector.html">matches</A> the element in <del>question.</del><ins>question</ins> <ins>and</ins> the
330+
<del>primary</del> <del>sort</del> <del>of</del><ins>target</ins> <ins>medium</ins> <ins>matches</ins> the <del>declarations</del> <del>is</del> <del>by</del> <del>weight</del><ins>media</ins> <ins>list</ins> <ins>on</ins> <ins>all</ins> <ins>@media</ins> <ins>rules</ins>
331+
<ins>containing</ins> <ins>the</ins> <ins>declaration</ins> and <del>origin:</del> <del>for</del> <del>normal</del> <del>declarations,</del> <del>author</del> <del>style</del> <del>sheets</del> <del>override</del> <del>user</del> <del>style</del> <del>sheets</del><ins>on</ins> <ins>all</ins> <ins>links</ins> <ins>on</ins> <ins>the</ins> <ins>path</ins> <ins>through</ins>
332+
which <del>override</del>the <del>default</del>style <del>sheet.</del> <del>For</del> <del>"!important"</del> <del>declarations,</del><ins>sheet</ins> <ins>was</ins> <ins>reached.</ins>
318333

319-
<LI> <del>The</del> <del>primary</del>Sort <del>of</del> <del>the</del> <del>declarations</del> <del>is</del> <del>by</del> <del>weight</del><ins>according</ins> <ins>to</ins> <ins>importance</ins> <ins>(normal</ins> <ins>or</ins> <ins>important)</ins>
320-
and <del>origin:</del> <del>for</del> <del>normal</del> <del>declarations,</del> <del>author</del> <del>style</del> <del>sheets</del> <del>override</del><ins>origin</ins> <ins>(author,</ins> <ins>user,</ins> <ins>or</ins> user <del>style</del> <del>sheets</del> <del>which</del> <del>override</del> <del>the</del> <del>default</del> <del>style</del> <del>sheet.</del> <del>For</del> <del>"!important"</del> <del>declarations,</del><ins>agent).</ins> <ins>In</ins> <ins>ascending</ins> <ins>order</ins> <ins>of</ins>
334+
<LI><ins>Sort</ins> <ins>according</ins> <ins>to</ins> <ins>importance</ins> <ins>(normal</ins> <ins>or</ins> <ins>important)</ins>
335+
<ins>and</ins> <ins>origin</ins> <ins>(author,</ins> <ins>user,</ins> <ins>or</ins> user <del>style</del> <del>sheets</del> <del>override</del><ins>agent).</ins> <ins>In</ins> <ins>ascending</ins> <ins>order</ins> <ins>of</ins>
321336
<ins>precedence:</ins>
322337

323338
<ol>
324-
<li>user <del>style</del> <del>sheets</del> <del>override</del><ins>agent</ins> <ins>declarations</ins>
339+
<li><ins>user</ins> <ins>agent</ins> <ins>declarations</ins>
325340
<li><ins>user</ins> <ins>normal</ins> <ins>declarations</ins>
326341
<li>author <del>style</del> <del>sheets</del> <del>which</del> <del>override</del> <del>the</del> <del>default</del> <del>style</del> <del>sheet.</del> <del>"!important"</del> <del>declaration</del> <del>override</del>normal <del>declarations.</del> <del>An</del> <del>imported</del> <del>style</del> <del>sheet</del> <del>has</del><ins>declarations</ins>
327342
<li><ins>author</ins> <ins>important</ins> <ins>declarations</ins>

0 commit comments

Comments
 (0)