Skip to content

Commit 7ecb6f6

Browse files
committed
[css2] Edited issues 31, 32, 37, 39, 40, 41, 42, 43, 44, 45, 46, 48, 49, 76,
77, 78, 80, 81, 82, and 83. See http://wiki.csswg.org/spec/css2.1 --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402859
1 parent f1d0f7a commit 7ecb6f6

5 files changed

Lines changed: 44 additions & 22 deletions

File tree

css2/cascade.src

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: cascade.src,v 2.64 2008-08-18 19:17:48 bbos Exp $ -->
3+
<!-- $Id: cascade.src,v 2.65 2008-11-26 15:05:03 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Assigning property values, Cascading, and Inheritance</TITLE>
66
</HEAD>
@@ -216,6 +216,18 @@ imports</span> specify comma-separated media types after the URI.
216216

217217
<p>In the absence of any media types, the import is
218218
unconditional. Specifying 'all' for the medium has the same effect.
219+
The import only takes effect if the target medium matches the media
220+
list.
221+
222+
<p>A target medium matches a media list if one of the items in the
223+
media list is the target medium or 'all'.
224+
225+
<p class=note>Note that Media Queries [[MEDIAQ]] extends the syntax of
226+
media lists and the definition of matching.
227+
228+
<p>When the same style sheet is imported or linked to a document in
229+
multiple places, user agents must process (or act as though they do)
230+
each link as though the link were to a separate style sheet.
219231

220232
<H2><a name="cascade">The cascade</a></h2>
221233

@@ -275,7 +287,10 @@ must apply the following sorting order:</p>
275287
Find all declarations that apply to the element and property in
276288
question, for the target <a href="media.html">media type</a>.
277289
Declarations apply if the associated selector <A
278-
HREF="selector.html">matches</A> the element in question.
290+
HREF="selector.html">matches</A> the element in question and the
291+
target medium matches the media list on all @media rules
292+
containing the declaration and on all links on the path through
293+
which the style sheet was reached.
279294

280295
<LI>Sort according to importance (normal or important)
281296
and origin (author, user, or user agent). In ascending order of

css2/fonts.src

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: fonts.src,v 2.90 2008-06-25 16:20:35 bbos Exp $ -->
3+
<!-- $Id: fonts.src,v 2.91 2008-11-26 15:05:03 bbos Exp $ -->
44
<head>
55
<title>Fonts</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -518,15 +518,11 @@ relative keywords 'bolder' and 'lighter' is as follows:
518518
</p>
519519
<ul>
520520
<li>'bolder' selects the next weight that is assigned to a font that
521-
is darker than the inherited one. If there is no such weight, it
522-
simply results in the next darker numerical value (and the font
523-
remains unchanged), unless the inherited value was '900' in which case
524-
the resulting weight is also '900'.
521+
is darker than the inherited one.
525522
</li>
526523
<li>'lighter' is similar, but works in the opposite direction: it
527524
selects the next lighter keyword with a different font from the
528-
inherited one, unless there is no such font, in which case it selects
529-
the next lighter numerical value (and keeps the font unchanged).
525+
inherited one.
530526
</li>
531527
</ul>
532528

css2/refs.src

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: refs.src,v 2.51 2008-08-18 19:17:49 bbos Exp $ -->
3+
<!-- $Id: refs.src,v 2.52 2008-11-26 15:05:04 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Bibliography</TITLE>
66
</HEAD>
@@ -195,6 +195,13 @@ Poppelier, 21 February 2001<br>
195195
Available at <a href="http://www.w3.org/TR/2001/REC-MathML2-20010221/">
196196
http://www.w3.org/TR/2001/REC-MathML2-20010221</a>
197197

198+
<dt><strong><a name="ref-MEDIAQ" class="informref">[MEDIAQ]</a></strong>
199+
<dd>"Media Queries", Håkon Wium Lie, Tantek Çelik, Daniel Glazman,
200+
Anne van Kesteren, 28 March 2008<br>
201+
(Work in progress.) Available at <a
202+
href="http://www.w3.org/TR/2008/CR-css3-mediaqueries-20080328/">
203+
http://www.w3.org/TR/2008/CR-css3-mediaqueries-20080328</a>
204+
198205
<dt><strong><a name="ref-P3P" class="informref">[P3P]</a></strong>
199206
<dd>"The Platform for Privacy Preferences 1.0 (P3P1.0) Specification",
200207
L. Cranor, M. Langheinrich, M. Marchiori, M. Presler-Marshall,

css2/syndata.src

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: syndata.src,v 2.160 2008-11-03 16:46:08 bbos Exp $ -->
3+
<!-- $Id: syndata.src,v 2.161 2008-11-26 15:05:04 bbos Exp $ -->
44
<head>
55
<title>Syntax and basic data types</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -437,7 +437,8 @@ href="selector.html">selectors</a>) consists of everything up to (but
437437
not including) the first left curly brace ({). A selector always goes
438438
together with a declaration block. When a user agent can't parse the selector (i.e., it
439439
is not valid CSS&nbsp;2.1), it must <span class="index-inst" title="ignore"><a
440-
href="#ignore">ignore</a></span> the declaration block as well.
440+
href="#ignore">ignore</a></span> the selector and the following
441+
declaration block (if any) as well.
441442
</p>
442443
<p>CSS&nbsp;2.1 gives a special meaning to the comma (,) in
443444
selectors. However, since it is not known if the comma may acquire
@@ -636,11 +637,11 @@ img { }
636637
<p>A user agent conforming to a future CSS specification may accept one or
637638
more of the other rules as well.</p>
638639
</li>
639-
<li><strong>Malformed statements.</strong> User agents must handle
640-
unexpected tokens encountered while parsing a statement by reading
641-
until the end of the statement, while observing the rules for matching
640+
<li><strong>Malformed declarations.</strong> User agents must handle
641+
unexpected tokens encountered while parsing a declaration by reading
642+
until the end of the declaration, while observing the rules for matching
642643
pairs of (), [], {}, "", and '', and correctly handling escapes. For
643-
example, a malformed statement may be missing a property, colon (:) or
644+
example, a malformed declaration may be missing a property, colon (:) or
644645
value. The following are all equivalent:
645646

646647

@@ -658,9 +659,10 @@ p { color:red; color{;color:maroon}; color:green } /* same with recovery */
658659

659660

660661
<li><strong>Invalid at-keywords.</strong> User agents must <span
661-
class="index-inst" title="ignore"><a href="#ignore">ignore</a></span> an
662-
invalid at-keyword together with everything following it, up to and
663-
including the next semicolon (;) or block ({...}), whichever
662+
class="index-inst" title="ignore"><a href="#ignore">ignore</a></span>
663+
an invalid at-keyword together with everything following it, up to and
664+
including the next semicolon (;), the next block ({...}), or the end
665+
of the block (}) that contains the invalid at-keyword, whichever
664666
comes first. For example, consider the following:
665667

666668
<pre class="illegal-example"><code>

css2/visudet.src

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: visudet.src,v 2.129 2008-08-19 12:33:06 bbos Exp $ -->
3+
<!-- $Id: visudet.src,v 2.130 2008-11-26 15:05:04 bbos Exp $ -->
44
<head>
55
<title>Visual formatting model details</title>
66
<style type="text/css">
@@ -330,7 +330,7 @@ device instead.
330330
<p>Percentage intrinsic widths are first evaluated with respect to the
331331
containing block's width, if that width doesn't itself depend on the
332332
replaced element's width. If it does, then the resulting layout is
333-
undefined in CSS2.1.
333+
undefined in CSS&nbsp;2.1.
334334

335335

336336
<h3><a name="blockwidth">Block-level, non-replaced elements in normal
@@ -1012,7 +1012,9 @@ for 'top' is the distance from the top edge of the containing block to
10121012
the top margin edge of a hypothetical box that would have been the
10131013
first box of the element if its specified <span
10141014
class="propinst-position">'position'</span> value had been 'static'
1015-
and its specified 'float' had been 'none'. (Note that due to the rules
1015+
and its specified <span class="propinst-float">'float'</span> had been
1016+
'none' and <span class="propinst-clear">'clear'</span> had been
1017+
'none'. (Note that due to the rules
10161018
in <a href="visuren.html#dis-pos-flo">section&nbsp;9.7</a> this might
10171019
require also assuming a different computed value for 'display'.)
10181020
The value is negative if the hypothetical box is above the containing

0 commit comments

Comments
 (0)