Skip to content

Commit a74ba2c

Browse files
committed
[css2] Incorporated proposed new meaning of !important.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401110
1 parent 21ea46f commit a74ba2c

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

css2/cascade.src

Lines changed: 14 additions & 12 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.9 1998-02-24 22:52:37 ijacobs Exp $ -->
3+
<!-- $Id: cascade.src,v 2.10 1998-03-09 16:22:00 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>
@@ -276,13 +276,11 @@ must apply the following algorithm:</p>
276276
declarations apply, terminate the algorithm.
277277

278278
<LI>
279-
Sort the declarations by explicit weight.
280-
<span class="index-inst" title="!override">!override</span>
281-
declarations, which may only appear in user style sheets,
282-
carry more weight than "!important" declarations.
283-
<span class="index-inst" title="!important">!important</span>
284-
declarations carry more weight than normal (unmarked)
285-
declarations.
279+
Sort the declarations by weight.
280+
<span class="index-def" title="important">"!important"</span>
281+
declarations in the user's style sheet have more weight than
282+
all other declarations.
283+
286284
<LI>
287285
Sort by origin: the author's style sheets override the user's
288286
style sheets which override the default style sheet. An imported
@@ -306,10 +304,14 @@ must apply the following algorithm:</p>
306304
the above steps yields a rule that has a higher weight than the other
307305
rules that apply to the same element/property combination.
308306

309-
<P> This strategy gives author's style sheets considerably higher
310-
weight than those of the reader. It is therefore important that the
311-
User agent gives the user the ability to turn off the influence of a
312-
certain style sheet, e.g., through a pull-down menu.
307+
<P>Note that "!important" may occur in author's and UA's style sheets,
308+
but only has an effect in the user's style sheets.
309+
310+
<P> Apart from the "!important" setting on individual declarations,
311+
this strategy gives author's style sheets higher weight than those of
312+
the reader. It is therefore important that the User Agent gives the
313+
user the ability to turn off the influence of a certain style sheet,
314+
e.g., through a pull-down menu.
313315

314316
<H3><a name="important-rules">!override and !important rules</a></H3>
315317

0 commit comments

Comments
 (0)