Skip to content

Commit eb1e212

Browse files
committed
[css2] Hakon's edits
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401850
1 parent 8f2b059 commit eb1e212

1 file changed

Lines changed: 30 additions & 13 deletions

File tree

css2/cascade.src

Lines changed: 30 additions & 13 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: cascade.src,v 2.33 2002-04-22 22:05:21 bbos Exp $ -->
3+
<!-- $Id: cascade.src,v 2.34 2002-04-23 20:17:51 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Assigning property values, Cascading, and Inheritance</TITLE>
@@ -290,16 +290,17 @@ must apply the following sorting order:</p>
290290
Declarations apply if the associated selector <A
291291
HREF="selector.html">matches</A> the element in question.
292292

293-
<LI>
294-
The primary sort of the declarations is by weight and origin: for normal
295-
declarations, author style sheets override
296-
user style sheets which override the default style sheet. For
297-
<span class="index-def" title="important">"!important"</span>
298-
declarations, user style sheets override author style sheets
299-
which override the default style sheet.
300-
"!important" declaration override normal declarations.
301-
An imported style sheet has the same
302-
origin as the style sheet that imported it.
293+
<!-- HWL 20020423: editorial change to description of weight/origin -->
294+
295+
<LI>The primary sort of the declarations is by weight (normal or important) and origin (author, user, or user agent). The weight of style sheets, in ascending order, is:
296+
297+
<ol>
298+
<li>user agent style sheets
299+
<li>user normal style sheets
300+
<li>author normal style sheets
301+
<li>author important style sheets
302+
<li>user important style sheets
303+
</ol>
303304

304305
<LI>
305306
The secondary sort is by <a href="#specificity">specificity</a>
@@ -335,11 +336,16 @@ declaration. Both author and user style sheets may contain
335336
of documents by giving users with special requirements (large
336337
fonts, color combinations, etc.) control over presentation.
337338

339+
340+
<!-- HWL 20020423: removed historical note -->
341+
342+
<!--
338343
<div class="note"><P>
339344
<em><strong>Note.</strong>
340345
This is a semantic change since CSS1. In CSS1, author "!important"
341346
rules took precedence over user "!important" rules. </em>
342347
</div>
348+
-->
343349

344350
<P>Declaring a <span class="index-inst" title="shorthand
345351
property">shorthand property</span> (e.g., <span
@@ -419,7 +425,7 @@ Some examples:
419425
&lt;/BODY&gt;
420426
</PRE>
421427

422-
<P> In the above example, the color of the P element would be
428+
<P>In the above example, the color of the P element would be
423429
green. The declaration in the "style" attribute will override the one in
424430
the STYLE element because of cascading rule 3, since it has a higher
425431
specificity.
@@ -433,6 +439,17 @@ defined as an "ID" in the source document's DTD.
433439

434440
<H3>Precedence of non-CSS presentational hints</H3>
435441

442+
<p>If the user agent chooses to honor presentational hints from other
443+
sources than style sheets, these hints must be given the same weight
444+
as the user agent's default style sheet.
445+
446+
<div class="note">
447+
<P><em><strong>Note.</strong>
448+
Non-CSS presentational hints had a higher weight in CSS2.
449+
</div>
450+
451+
<!-- HWL 20020423: replaced description of presentational hints -->
452+
<!--
436453
<P>The UA may choose to honor presentational hints from other sources
437454
than style sheets, for example the FONT element or the "align"
438455
attribute in HTML. If so, the non-CSS presentational hints must be
@@ -454,7 +471,7 @@ equal to 1, not 0. The change is due to the introduction of the
454471
universal selector, which has a specificity of 0.
455472
</em>
456473
</div>
457-
474+
-->
458475

459476
</BODY>
460477
</html>

0 commit comments

Comments
 (0)