Skip to content

Commit df2fdca

Browse files
committed
[css2] Rewrote the section on non-css presentatinal information to go beyond
HTML attributes --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40368
1 parent ea73fed commit df2fdca

1 file changed

Lines changed: 19 additions & 17 deletions

File tree

css2/cascade.src

Lines changed: 19 additions & 17 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 1.18 1997-10-30 08:28:59 ian Exp $ -->
3+
<!-- $Id: cascade.src,v 1.19 1997-11-04 14:15:37 howcome Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>Cascade</TITLE>
@@ -12,7 +12,7 @@
1212
<H1 align="center">Cascade</H1>
1313

1414
<P> In CSS, more than one style sheet can simultaneously influence a
15-
document's presentation and rules from these style sheets may overlap
15+
the presentation of a document and rules from these style sheets may overlap
1616
in scope (e.g., two rules that apply to the same element specify a
1717
font size). CSS resolves these conflicts by assigning a weight to each
1818
style rule and when several rules apply, choosing the one with the
@@ -45,7 +45,8 @@ the following algorithm:
4545
<OL>
4646
<LI>
4747
Find all declarations that apply to the element/property in
48-
question. Declarations apply if the selector matches the
48+
question. Declarations apply if the associated selector
49+
<A HREF="selector.html">matches</A> the
4950
element in question. If no declarations apply, terminate
5051
the algorithm.
5152

@@ -65,10 +66,9 @@ the following algorithm:
6566
<LI>
6667
Sort by specificity of selector: more specific selectors will
6768
override more general ones. The definition and calculation of
68-
specificity is object-language dependent.
69-
70-
<P> Pseudo-elements and pseudo-classes are counted as normal
71-
elements and classes, respectively.
69+
specificity is object-language dependent. Pseudo-elements and
70+
pseudo-classes are counted as normal elements and classes,
71+
respectively.
7272

7373
<LI> Sort by order specified: if two rules have the same weight,
7474
the latter specified wins. Rules in imported style sheets are
@@ -87,7 +87,7 @@ information.)
8787

8888
<P> This strategy gives author's style sheets considerably higher
8989
weight than those of the reader. It is therefore important that the
90-
user agent give the user the ability to turn off the influence of a
90+
User agent gives the user the ability to turn off the influence of a
9191
certain style sheet, e.g., through a pull-down menu.
9292

9393
<H3><a name="important-rules">'Important' rules</a></H3>
@@ -162,16 +162,18 @@ declaration in the "style" attribute will override the one in the
162162
STYLE element because of cascading rule number 5.
163163
</div>
164164

165-
<H3>Precedence of document language attributes</H3>
166-
<P> The UA may choose to honor other attributes of the document language
167-
(e.g., HTML presentational attribute such as "align"). If so, these
168-
attributes are translated to the corresponding CSS rules with
169-
specificity equal to 1. The rules are assumed to be at the start of
170-
the author style sheet and may be overridden by subsequent style sheet
171-
rules.
165+
<H3>Precedence of non-CSS presentational hints</H3>
166+
167+
<P>The UA may choose to honor presentational hints from other sources
168+
than style sheets, for example the FONT element or the "align"
169+
attribute in HTML. If so, the non-CSS presentational hints must be
170+
translated to the corresponding CSS rules with specificity equal to
171+
1. The rules are assumed to be at the start of the author style sheet
172+
and may be overridden by subsequent style sheet rules.
173+
174+
<div class="note">
172175

173-
<div class="note"><P>
174-
<em><strong>Note.</strong>
176+
<P><em><strong>Note.</strong>
175177
In a transition phase, this policy will make it easier for
176178
stylistic attributes to coexist with style sheets.
177179
</em>

0 commit comments

Comments
 (0)